image/svg+xml
/** * Simple HelloButton() method. * @version 1.0 * @author john doe <doe.j@example.com> */HelloButton(){ JButton hello = new JButton( "Hello, wor hello.addActionListener( new HelloBtnList // use the JFrame type until support for t // new component is finished JFrame frame = new JFrame( "Hello Button" Container pane = frame.getContentPane(); pane.add( hello ); frame.pack(); frame.show(); // display the fra}