/**
* Debugging harness for a JPanel
*
* @param args command line arguments are ignored.
*/
public static void main ( String args [] )
{
if ( Config.DEBUG )
{
try
{
if ( Config.LOOK_AND_FEEL != null )
{
UIManager.setLookAndFeel( Config.LOOK_AND_FEEL );
}
}
catch ( Exception e )
{
System.out.println( "Problem setting look and feel" );
e.printStackTrace();
}
JFrame.setDefaultLookAndFeelDecorated ( true );
final JPanel panel = new MyPanel();
JFrame frame = new JFrame( "MyPanel test" );
frame.setSize( 400, 400 );
frame.getContentPane().add ( panel );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.validate();
frame.setVisible( true );
}
}