FileDocCategorySizeDatePackage
FullWorks.javaAPI DocExample1224Sun Mar 01 23:42:48 GMT 1998None

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();