FileDocCategorySizeDatePackage
PutGet.javaAPI DocExample1326Tue Nov 13 16:41:20 GMT 2001None

PutGet

public class PutGet extends JFrame
This class provides the screen "holder" for the three classes: Putter, Store and Getter

Fields Summary
Store
store
Putter
putter
Getter
getter
Constructors Summary
public PutGet()


    
   
      JPanel topLine = new JPanel();
      topLine.setLayout( new GridLayout( 1, 3 ) );
      topLine.add( new JLabel( "Putter object", JLabel.CENTER ) );
      topLine.add( new JLabel( "The Store", JLabel.CENTER ) );
      topLine.add( new JLabel( "Getter object", JLabel.CENTER ) );
      getContentPane().add( topLine, BorderLayout.NORTH );

      JPanel displayPanel = new JPanel();
      displayPanel.setLayout( new GridLayout( 1, 3 ) );
      displayPanel.add( putter );
      displayPanel.add( store );
      displayPanel.add( getter );

      getContentPane().add( displayPanel, BorderLayout.CENTER );

      addWindowListener( new WindowAdapter(){
         public void windowClosing( WindowEvent e )
         {
            System.exit( 0 );
         }
      });

      pack();
      setVisible( true );
   
Methods Summary
public static voidmain(java.lang.String[] commandLineArguments)

      new PutGet();