FileDocCategorySizeDatePackage
FullWorks.javaAPI DocExample1273Thu Feb 03 08:18:06 GMT 2000None

FullWorks

public class FullWorks extends Frame

Fields Summary
Constructors Summary
public FullWorks()

  setTitle( "FullWorks" );

      MenuBar mb = new MenuBar();
      Menu file = new Menu( "File" );
      file.add( new MenuItem( "Save" ) );
      file.add( new MenuItem( "Load" ) );
      file.addSeparator();
      file.add( new MenuItem( "Quit" ) );
      mb.add( file );
      
      Menu edit = new Menu( "Edit" );
      edit.add( new MenuItem( "Find" ) );
      edit.add( new MenuItem( "Replace" ) );
      mb.add( edit );
      setMenuBar( mb );

      Panel top = new Panel();
      top.setLayout( new FlowLayout( FlowLayout.LEFT ) );
      Choice font = new Choice();
      font.addItem( "Serif" );
      font.addItem( "SansSerif" );
      font.addItem( "Monspaced" );
      top.add( new Label( "Font" ) );
      top.add( font );
      top.add( new Label( "Size" ) );
      top.add( new TextField( "12", 3 ) );
      add( "North", top );

      add( "Center", new TextArea( "Type in here", 20, 50 ) );
      
      pack();
      setVisible( true );
   
Methods Summary
public static voidmain(java.lang.String[] args)

  new FullWorks();
      new FullWorks();