public class SplashScreen
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static javax.swing.JProgressBar |
progressBar |
protected static javax.swing.JLabel |
progressLabel |
protected static javax.swing.JFrame |
splashScreen |
Constructor and Description |
---|
SplashScreen() |
Modifier and Type | Method and Description |
---|---|
void |
hideSplashScreen()
Hide the splash screen
|
void |
setSplashProgress(java.lang.String s)
Increment the progress bar and display s
|
void |
showSplashScreen(int tasks)
Display the Splash screen with a progress bar
|
protected static javax.swing.JFrame splashScreen
protected static javax.swing.JProgressBar progressBar
protected static javax.swing.JLabel progressLabel
public void showSplashScreen(int tasks)
tasks
- the length of the progress bar (no. of items)public void setSplashProgress(java.lang.String s)
s
- the string to displaypublic void hideSplashScreen()