All pastes #423789 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-04 12:28 UTC
rendered paste body
import javax.swing.*; 
import java.awt.*; 

class Action extends JFrame implements ActionListener
{  public Action ()
   {
       /* define all panels and components in this frame here */ 
 
       /* action to be performed when frame is closed */
     addWindowListener(new WindowAdapter()
         {  public void windowClosing(WindowEvent e)
            {  System.exit(O); }
         } );
 
   }
   
      public void actionPerformed(ActionEvent evt)
   {
       /* will respond to events fired by the frame */
   }

}