|
-
Nov 15th, 2002, 04:41 AM
#1
Thread Starter
Hyperactive Member
Splash
Hey all im trying to make a splash screen for my Applecation but to no luck the the form show Fine if i dont use the Progressbar but i need it can some one help me ? or give me some code that works better ?
Code:
public void Splash()
{
Lemo mySplash = new Lemo();
Dimension max = new Dimension(500,20);
mySplash.frmSplash.setResizable(false);
//Label with Images in it
mySplash.frmSplash.add("Center",lblSplash);
mySplash.frmSplash.add("South",prbLoad);
prbLoad.setValue(0);
prbLoad.setStringPainted(true);
prbLoad.setSize(max);
prbLoad.setMaximumSize(max);
mySplash.frmSplash.setSize(500,370);
frmSplash.pack();
//frmSplash.setVisible(true);
mySplash.frmSplash.show();
Progress();
}
public void Progress()
{
WAITE = new Thread();
try
{
while(Num < 2000)
{
WAITE.sleep(1000);
Num = Num + 50;
prbLoad.setValue(Num);
}
}
catch(InterruptedException e)
{
}
}
-
Nov 18th, 2002, 06:08 PM
#2
Thread Starter
Hyperactive Member
This Java Forum sucks takes forever to get a reply!!!
-
Nov 18th, 2002, 09:01 PM
#3
Ya ya Baby!!!Me is Back
post the entire class if you want help...
-
Nov 18th, 2002, 09:02 PM
#4
Ya ya Baby!!!Me is Back
and usually you need a the run() methode with Thread...
-
Nov 19th, 2002, 03:56 AM
#5
Thread Starter
Hyperactive Member
Ok
I copyed the Progress bar example from my Book anyone have a better way to do it or wanna help me out with some alrdy dune code would be a BIG Help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|