swingwtx.swing
Class JSplashScreen

java.lang.Object
  extended byswingwtx.swing.JSplashScreen

public class JSplashScreen
extends java.lang.Object

In swing, it's a relatively easy process to create a splash screen. Simply override the paintComponent method of the JFrame and don't call the superclass's implementation of paintComponent. Then draw your splash screen on the JFrame. Simple. Unfortunately, SwingWT cannot use the same aproach to splash screens because SwingWT doesn't actually paint the components, it's the native widget set that does that. Because of this, the code that used to work to create a splash screen no longer works (and cannot work). To make up for this, I have created a JSplashScreen component which creates a standard SWT splash screen. Rob: This class isn't really necessary as I've now added support for Java2D to all components/frames so you can now intercept the paint event and draw your own stuff on a frame! I've left this in as it is quite a useful convenience class.


Field Summary
static int NO_TEXT
           
static int TEXT_LOWER_LEFT
           
static int TEXT_LOWER_RIGHT
           
static int TEXT_UPPER_LEFT
           
static int TEXT_UPPER_RIGHT
           
 
Constructor Summary
JSplashScreen(Image img)
           
JSplashScreen(Image img, int style)
           
 
Method Summary
 void setText(java.lang.String text)
           
 void takeDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_LOWER_RIGHT

public static final int TEXT_LOWER_RIGHT
See Also:
Constant Field Values

TEXT_LOWER_LEFT

public static final int TEXT_LOWER_LEFT
See Also:
Constant Field Values

TEXT_UPPER_RIGHT

public static final int TEXT_UPPER_RIGHT
See Also:
Constant Field Values

TEXT_UPPER_LEFT

public static final int TEXT_UPPER_LEFT
See Also:
Constant Field Values

NO_TEXT

public static final int NO_TEXT
See Also:
Constant Field Values
Constructor Detail

JSplashScreen

public JSplashScreen(Image img,
                     int style)

JSplashScreen

public JSplashScreen(Image img)
Method Detail

setText

public void setText(java.lang.String text)

takeDown

public void takeDown()