home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-06-12 | 1.8 KB | 77 lines | [TEXT/Rstr] |
-
- import java.awt.Button;
- import java.awt.Checkbox;
- import java.awt.Choice;
- import java.awt.TextArea;
- import java.awt.List;
- import java.awt.Label;
- import java.awt.TextField;
-
- import java.awt.Event;
- import RectPanel;
-
- public class View extends RectPanel
- {
- Button mButtonButton;
- Checkbox mCheckboxCheck;
- Choice mPopupChoice;
- TextArea mTextAreaField;
- List mStylesList;
- Label mLabelLabel;
- TextField mTextFieldField;
-
- public View()
- {
- super();
-
- // BindingLayout b = new BindingLayout();
- // BindingLayout is a LayoutManager
- // that implements "binding" of components
- // so that they resize when they container is resized.
- // BindingLayout was written by a Roaster engineer
- // and is not publicly available.
- // If BindingLayout becomes publicly available
- // then AppMaker will generate code for it.
- // setLayout(b);
- setLayout (null);
-
- resize(325, 214);
-
- add( mButtonButton = new Button("Button") );
- mButtonButton.reshape( 20, 16, 72, 20);
-
- add( mCheckboxCheck = new Checkbox("Checkbox") );
- mCheckboxCheck.reshape( 116, 20, 84, 16);
-
- add( mPopupChoice = new Choice() );
- mPopupChoice.reshape( 216, 16, 100, 20);
- mPopupChoice.addItem( "Choice");
- mPopupChoice.addItem( "-");
- mPopupChoice.addItem( "fred");
- mPopupChoice.addItem( "george");
- mPopupChoice.addItem( "harry");
-
- add (mTextAreaField = new TextArea ("TextArea"));
- mTextAreaField.reshape (20, 60, 122, 83);
-
- add( mStylesList = new List() );
- mStylesList.reshape( 168, 60, 120, 84);
- mStylesList.addItem( "one");
- mStylesList.addItem( "two");
- mStylesList.addItem( "three");
- mStylesList.addItem( "infinity");
-
- add( mLabelLabel = new Label("Label:") );
- mLabelLabel.reshape( 80, 168, 42, 17);
-
- add (mTextFieldField = new TextField ("TextField"));
- mTextFieldField.reshape (120, 168, 100, 16);
-
- }
-
- public boolean action(Event e)
- {
- return false;
- }
- }
-