-
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)
{
}
}
-
This Java Forum sucks takes forever to get a reply!!!
-
post the entire class if you want help...
-
and usually you need a the run() methode with Thread...
-
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