INPUT
/* The M_Class import files should be inserted below. */
import java.awt.*;
/* The following section should translate the Samples to the */
/* appropriate M_Sample types. */
public class BogusClass extends Panel()
{
Button SampleButton = new Button;
Canvas SampleCanvas = new Canvas;
Checkbox SampleCheckBox = new Checkbox;
ChoiceBox SampleChoiceBox = new ChoiceBox;
Panel SamplePanel = new Panel;
Applet SampleApplet = new Applet;
Dialog SampleDialog = new Dialog;
Frame SampleFrame = new Frame;
Label SampleLabel = new Label;
List SampleList = new List;
Scrollbar SampleScrollBar = new Scrollbar;
TextArea SampleTextArea = new TextArea;
TextView SampleTextView = new TextView;
MenuBar SampleMenuBar = new MenuBar;
Menu SampleMenu = new Menu;
MenuItem SampleMenuItem = new MenuItem;
CheckboxMenuItem SampleCheckBoxMenuItem = new CheckboxMenuItem;
{
/* This is another test for "{...}" */
}
// Test for comment of this type...
/* Another Test for "/* ... */" delimited comments. */
/* Another test for quoted strings of the form
"1234567890" */
public boolean handleEvent(Event e)
{
/* This should insert the control panel just above this comment. */
if(e.id == Event.ACTION_EVENT)
{
/* Do Stuff */
}
}
/* Do stuff */
}
Page 12 |
Document Index |
Page 14 |