OUTPUT
/* The M_Class import files should be inserted below. */
import java.awt.*;
import Motorola.ControlPanel.*;
import Motorola.M_Classes.*;
/* The following section should translate the Samples to the */
/* appropriate M_Sample types. */
public class BogusClass extends M_Panel
{
M_Button SampleButton = new M_Button;
M_Canvas SampleCanvas = new M_Canvas;
M_Checkbox SampleCheckBox = new M_Checkbox;
M_ChoiceBox SampleChoiceBox = new M_ChoiceBox;
M_Panel SamplePanel = new M_Panel;
M_Applet SampleApplet = new M_Applet;
M_Dialog SampleDialog = new M_Dialog;
M_Frame SampleFrame = new M_Frame;
M_Label SampleLabel = new M_Label;
M_List SampleList = new M_List;
M_Scrollbar SampleScrollBar = new M_Scrollbar;
M_TextArea SampleTextArea = new M_TextArea;
M_TextView SampleTextView = new M_TextView;
M_MenuBar SampleMenuBar = new M_MenuBar;
M_Menu SampleMenu = new M_Menu;
M_MenuItem SampleMenuItem = new M_MenuItem;
M_CheckboxMenuItem SampleCheckBoxMenuItem = new
M_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)
{
if((%s.id==Event.KEY_PRESS)&&(%s.key==Event.F1))
{
ControlPanel controlPanelFrame = new ControlPanel();
controlPanelFrame.show();
}
/* This should insert the control panel just above this comment. */
if(e.id == Event.ACTION_EVENT)
{
/* Do Stuff */
}
}
/* Do stuff */
}
Page 13 |
Document Index |
Page 15 |