setResizable( true );
}
private void init()
{
JMenuBar menuBar = new JMenuBar();
JMenu menu = new JMenu( "?" );
JMenuItem about = new JMenuItem( DemoApp.getRes().getString( "About.." ) );
// this.setLayout(new BorderLayout());
about.setActionCommand( "about" );
about.addActionListener( this );
addWindowListener( this );
JMenu jMenu1 = new JMenu();
jMenu1.setText( DemoApp.getRes().getString( "Test" ) );
JMenuItem jMenuItem1 = new JMenuItem();
jMenuItem1.setText( DemoApp.getRes().getString( "Start Test" ) );
jMenuItem1.setEnabled( false );
jMenuItem1.setActionCommand( "start" );
jMenuItem1.addActionListener( this );
jMenu1.add( jMenuItem1 );
JMenuItem jMenuItem2 = new JMenuItem();
jMenuItem2.setText( DemoApp.getRes().getString( "Stop Test" ) );
jMenuItem2.setActionCommand( "finish" );
jMenuItem2.addActionListener( this );
jMenu1.add( jMenuItem2 );
JMenuItem jMenuItem3 = new JMenuItem();
jMenuItem3.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK ) );
jMenuItem3.setText( DemoApp.getRes().getString( "Close" ) );
jMenuItem3.addActionListener( new ActionListener()
{
public void actionPerformed( ActionEvent e )
{
m_this.doAction( "finish" );
WrapperManager.stopAndReturn( 0 );
}
} );
jMenu1.add( jMenuItem3 );
this.setJMenuBar( menuBar );
menu.add( about );
menuBar.add( jMenu1 );
menuBar.add( menu );
this.setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );
GridBagLayout gridBag1 = new GridBagLayout();
GridBagLayout gridBag2 = new GridBagLayout();
GridBagConstraints c1 = new GridBagConstraints();