public class Fireup implements Runnable
{
/**
* fire up the JFrame on the Swing thread
*/
public void run()
{
if ( Config.DEBUG )
{
try
{
if ( Config.LOOK_AND_FEEL != null )
{
UIManager.setLookAndFeel( Config.LOOK_AND_FEEL );
}
}
catch ( Exception e )
{
out.println( "Problem setting look and feel" );
e.printStackTrace();
}
JFrame.setDefaultLookAndFeelDecorated ( true );
final SomeFrame jframe = new SomeFrame( titleString + " " + versionString );
jframe.setSize( width, height );
jframe.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
jframe.validate();
jframe.setVisible( true );
}
}
/**
* Debugging harness for a JFrame
*
* @param args command line arguments are ignored.
*/
public static void main ( String args[] )
{
SwingUtilities.invokeAndWait( new Fireup() );
}
}