Multiple Device Markup Language
Description and Generation
DePaul University
School of Computer Science, Telecommunications and Information Systems
Updated on 02/18/2004 12:12 AM
Calculator Application Example
<?xml
version="1.0" encoding="UTF-8"?>
<Start name="CalculatorGui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="J:\eclipse\workspace\Zoom\src\resources\ui\UISchema.xsd">
<Window id="String" name="Calculator" show="true">
<MenuBar name="menuBar1">
<Menu text="Edit">
<MenuItem mnenomic="c" text="Copy"/>
<MenuItem mnenomic="p" text="Paste"/>
</Menu>
<Menu text="View">
<MenuItem mnenomic="n" text="Standard"/>
<MenuItem mnenomic="u" text="Scientific"/>
<MenuItem mnenomic="c" text="Digital
Grouping"/>
</Menu>
<Menu text="Help">
<MenuItem mnenomic="h" text="Help
Topics"/>
<MenuItem mnenomic="a" text="About
Calculator"/>
</Menu>
</MenuBar>
<Panel>
<BoxLayout axis="1"/>
<Panel>
<TextBox type="text" editable="false" columns="40" leftx="1" lefty="2" rightx="170" righty="20"/>
</Panel>
<Panel>
<GridLayout rows="1" columns="4" icolumns="4" horizontalSpacing="16"/>
<Button text=""/>
<Button text="Backspace"/>
<Button text="CE"/>
<Button text="C"/>
</Panel>
<Panel id="Calculator
Panel" name="JCalcPanel">
<GridLayout rows="4" columns="6" icolumns="6" horizontalSpacing="4"/>
<Button text="MC"/>
<Button text="7"/>
<Button text="8"/>
<Button text="9"/>
<Button text="/"/>
<Button text="sqrt"/>
<Button text="MR"/>
<Button text="4"/>
<Button text="5"/>
<Button text="6"/>
<Button text="*"/>
<Button text="%"/>
<Button text="MS"/>
<Button text="1"/>
<Button text="2"/>
<Button text="3"/>
<Button text="-"/>
<Button text="1/x"/>
<Button text="M+"/>
<Button text="0"/>
<Button text="+/-"/>
<Button text="."/>
<Button text="+"/>
<Button text="="/>
</Panel>
</Panel>
</Window>
</Start>

// Generated by JavaGenerator.
// Wed Jan 28 11:29:25 CST 2004
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.tree.*;
public class CalculatorGui {
public void createComponents() {
Calculator = new JFrame();
Calculator.setTitle("Calculator");
menuBar1 = new JMenuBar();
Calculator.setJMenuBar(menuBar1);
menuBar1.setName("menuBar1");
JMenu4 = new JMenu();
menuBar1.add(JMenu4);
JMenu4.setText("Edit");
JMenuItem5 = new JMenuItem();
JMenu4.add(JMenuItem5);
JMenuItem5.setText("Copy");
JMenuItem6 = new JMenuItem();
JMenu4.add(JMenuItem6);
JMenuItem6.setText("Paste");
JMenu7 = new JMenu();
menuBar1.add(JMenu7);
JMenu7.setText("View");
JMenuItem8 = new JMenuItem();
JMenu7.add(JMenuItem8);
JMenuItem8.setText("Standard");
JMenuItem9 = new JMenuItem();
JMenu7.add(JMenuItem9);
JMenuItem9.setText("Scientific");
JMenuItem10 = new JMenuItem();
JMenu7.add(JMenuItem10);
JMenuItem10.setText("Digital
Grouping");
JMenu11 = new JMenu();
menuBar1.add(JMenu11);
JMenu11.setText("Help");
JMenuItem12 = new JMenuItem();
JMenu11.add(JMenuItem12);
JMenuItem12.setText("Help
Topics");
JMenuItem13 = new JMenuItem();
JMenu11.add(JMenuItem13);
JMenuItem13.setText("About
Calculator");
JPanel14 = new JPanel();
Calculator.getContentPane().add(JPanel14);
BoxLayout15 = new BoxLayout(JPanel14 ,
1);
JPanel14.setLayout(BoxLayout15);
JPanel16 = new JPanel();
JPanel14.add(JPanel16);
JTextField17 = new JTextField();
JPanel16.add(JTextField17);
JTextField17.setColumns(40);
JPanel18 = new JPanel();
JPanel14.add(JPanel18);
GridLayout19 = new GridLayout();
JPanel18.setLayout(GridLayout19);
GridLayout19.setRows(1);
GridLayout19.setColumns(4);
JButton20 = new JButton();
JPanel18.add(JButton20);
JButton20.setText("");
JButton21 = new JButton();
JPanel18.add(JButton21);
JButton21.setText("Backspace");
JButton22 = new JButton();
JPanel18.add(JButton22);
JButton22.setText("CE");
JButton23 = new JButton();
JPanel18.add(JButton23);
JButton23.setText("C");
JCalcPanel = new JPanel();
JPanel14.add(JCalcPanel);
JCalcPanel.setName("JCalcPanel");
GridLayout25 = new GridLayout();
JCalcPanel.setLayout(GridLayout25);
GridLayout25.setRows(4);
GridLayout25.setColumns(6);
JButton26 = new JButton();
JCalcPanel.add(JButton26);
JButton26.setText("MC");
JButton27 = new JButton();
JCalcPanel.add(JButton27);
JButton27.setText("7");
JButton28 = new JButton();
JCalcPanel.add(JButton28);
JButton28.setText("8");
JButton29 = new JButton();
JCalcPanel.add(JButton29);
JButton29.setText("9");
JButton30 = new JButton();
JCalcPanel.add(JButton30);
JButton30.setText("/");
JButton31 = new JButton();
JCalcPanel.add(JButton31);
JButton31.setText("sqrt");
JButton32 = new JButton();
JCalcPanel.add(JButton32);
JButton32.setText("MR");
JButton33 = new JButton();
JCalcPanel.add(JButton33);
JButton33.setText("4");
JButton34 = new JButton();
JCalcPanel.add(JButton34);
JButton34.setText("5");
JButton35 = new JButton();
JCalcPanel.add(JButton35);
JButton35.setText("6");
JButton36 = new JButton();
JCalcPanel.add(JButton36);
JButton36.setText("*");
JButton37 = new JButton();
JCalcPanel.add(JButton37);
JButton37.setText("%");
JButton38 = new JButton();
JCalcPanel.add(JButton38);
JButton38.setText("MS");
JButton39 = new JButton();
JCalcPanel.add(JButton39);
JButton39.setText("1");
JButton40 = new JButton();
JCalcPanel.add(JButton40);
JButton40.setText("2");
JButton41 = new JButton();
JCalcPanel.add(JButton41);
JButton41.setText("3");
JButton42 = new JButton();
JCalcPanel.add(JButton42);
JButton42.setText("-");
JButton43 = new JButton();
JCalcPanel.add(JButton43);
JButton43.setText("1/x");
JButton44 = new JButton();
JCalcPanel.add(JButton44);
JButton44.setText("M+");
JButton45 = new JButton();
JCalcPanel.add(JButton45);
JButton45.setText("0");
JButton46 = new JButton();
JCalcPanel.add(JButton46);
JButton46.setText("+/-");
JButton47 = new JButton();
JCalcPanel.add(JButton47);
JButton47.setText(".");
JButton48 = new JButton();
JCalcPanel.add(JButton48);
JButton48.setText("+");
JButton49 = new JButton();
JCalcPanel.add(JButton49);
JButton49.setText("=");
Calculator.show();
}
public Object
getComponent(String name) {
Object result = null;
if
(name.equalsIgnoreCase("Calculator")) {
result =
Calculator;
}
else if
(name.equalsIgnoreCase("menuBar1")) {
result =
menuBar1;
}
else if
(name.equalsIgnoreCase("JMenu4")) {
result = JMenu4;
}
else if
(name.equalsIgnoreCase("JMenuItem5")) {
result =
JMenuItem5;
}
else if
(name.equalsIgnoreCase("JMenuItem6")) {
result =
JMenuItem6;
}
else if
(name.equalsIgnoreCase("JMenu7")) {
result = JMenu7;
}
else if (name.equalsIgnoreCase("JMenuItem8")) {
result =
JMenuItem8;
}
else if
(name.equalsIgnoreCase("JMenuItem9")) {
result =
JMenuItem9;
}
else if
(name.equalsIgnoreCase("JMenuItem10")) {
result =
JMenuItem10;
}
else if (name.equalsIgnoreCase("JMenu11")) {
result = JMenu11;
}
else if
(name.equalsIgnoreCase("JMenuItem12")) {
result =
JMenuItem12;
}
else if
(name.equalsIgnoreCase("JMenuItem13")) {
result =
JMenuItem13;
}
else if (name.equalsIgnoreCase("JPanel14")) {
result =
JPanel14;
}
else if
(name.equalsIgnoreCase("BoxLayout15")) {
result =
BoxLayout15;
}
else if
(name.equalsIgnoreCase("JPanel16")) {
result =
JPanel16;
}
else if
(name.equalsIgnoreCase("JTextField17")) {
result =
JTextField17;
}
else if
(name.equalsIgnoreCase("JPanel18")) {
result =
JPanel18;
}
else if
(name.equalsIgnoreCase("GridLayout19")) {
result =
GridLayout19;
}
else if
(name.equalsIgnoreCase("JButton20")) {
result =
JButton20;
}
else if
(name.equalsIgnoreCase("JButton21")) {
result =
JButton21;
}
else if
(name.equalsIgnoreCase("JButton22")) {
result =
JButton22;
}
else if
(name.equalsIgnoreCase("JButton23")) {
result =
JButton23;
}
else if
(name.equalsIgnoreCase("JCalcPanel")) {
result =
JCalcPanel;
}
else if
(name.equalsIgnoreCase("GridLayout25")) {
result =
GridLayout25;
}
else if
(name.equalsIgnoreCase("JButton26")) {
result = JButton26;
}
else if
(name.equalsIgnoreCase("JButton27")) {
result =
JButton27;
}
else if
(name.equalsIgnoreCase("JButton28")) {
result =
JButton28;
}
else if
(name.equalsIgnoreCase("JButton29")) {
result =
JButton29;
}
else if
(name.equalsIgnoreCase("JButton30")) {
result =
JButton30;
}
else if
(name.equalsIgnoreCase("JButton31")) {
result =
JButton31;
}
else if
(name.equalsIgnoreCase("JButton32")) {
result =
JButton32;
}
else if (name.equalsIgnoreCase("JButton33")) {
result =
JButton33;
}
else if
(name.equalsIgnoreCase("JButton34")) {
result =
JButton34;
}
else if
(name.equalsIgnoreCase("JButton35")) {
result =
JButton35;
}
else if (name.equalsIgnoreCase("JButton36")) {
result =
JButton36;
}
else if
(name.equalsIgnoreCase("JButton37")) {
result =
JButton37;
}
else if
(name.equalsIgnoreCase("JButton38")) {
result =
JButton38;
}
else if
(name.equalsIgnoreCase("JButton39")) {
result =
JButton39;
}
else if
(name.equalsIgnoreCase("JButton40")) {
result =
JButton40;
}
else if
(name.equalsIgnoreCase("JButton41")) {
result =
JButton41;
}
else if
(name.equalsIgnoreCase("JButton42")) {
result =
JButton42;
}
else if
(name.equalsIgnoreCase("JButton43")) {
result =
JButton43;
}
else if
(name.equalsIgnoreCase("JButton44")) {
result =
JButton44;
}
else if
(name.equalsIgnoreCase("JButton45")) {
result = JButton45;
}
else if
(name.equalsIgnoreCase("JButton46")) {
result =
JButton46;
}
else if
(name.equalsIgnoreCase("JButton47")) {
result =
JButton47;
}
else if
(name.equalsIgnoreCase("JButton48")) {
result =
JButton48;
}
else if
(name.equalsIgnoreCase("JButton49")) {
result =
JButton49;
}
return(result);
}
public static CalculatorGui
getInstance() {
if ( gui_instance == null ) {
gui_instance
= new
CalculatorGui();
gui_instance.createComponents();
}
return gui_instance;
}
public static void main(String[] args) {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception e) {
System.out.println("Error");
}
getInstance();
}
protected JMenuItem
JMenuItem6;
protected JMenuBar
menuBar1;
protected BoxLayout
BoxLayout15;
protected JButton
JButton29;
protected GridLayout
GridLayout19;
protected JButton
JButton37;
protected JButton
JButton32;
protected JButton
JButton36;
protected JPanel
JCalcPanel;
protected JButton
JButton22;
protected JTextField
JTextField17;
protected JMenu
JMenu4;
protected JMenu
JMenu7;
protected JMenu
JMenu11;
protected JButton JButton40;
protected JButton
JButton44;
protected GridLayout
GridLayout25;
protected JMenuItem
JMenuItem10;
protected JMenuItem
JMenuItem9;
protected JMenuItem
JMenuItem5;
protected JFrame
Calculator;
protected JButton
JButton26;
protected JButton
JButton48;
protected JButton
JButton38;
protected JButton
JButton33;
protected JButton
JButton23;
protected JButton
JButton41;
protected JButton
JButton45;
protected JMenuItem
JMenuItem8;
protected JButton
JButton27;
protected JButton
JButton49;
protected JButton
JButton39;
protected JButton
JButton30;
protected JButton
JButton34;
protected JMenuItem
JMenuItem13;
protected JButton
JButton20;
protected JButton
JButton42;
protected JButton
JButton46;
protected JMenuItem
JMenuItem12;
protected JPanel
JPanel16;
protected JPanel
JPanel14;
protected JPanel
JPanel18;
private static CalculatorGui
gui_instance;
protected JButton
JButton28;
protected JButton
JButton31;
protected JButton
JButton35;
protected JButton
JButton21;
protected JButton
JButton43;
protected JButton
JButton47;
////>>>>
CalculatorGui: fields and methods
//// Add fields and methods below.
////<<<<
CalculatorGui: fields and methods
}

// Generated by JavaGenerator.
// Wed Jan 28 11:21:12 CST 2004
import org.eclipse.swt.*;
import
org.eclipse.swt.widgets.*;
import
org.eclipse.swt.layout.*;
import org.eclipse.swt.graphics.*;
import
org.eclipse.swt.custom.*;
public class CalculatorGui {
public void createComponents() {
FillLayout2 = new FillLayout();
Display2 = new Display();
Calculator = new Shell(Display2);
Calculator.setText("Calculator");
Calculator.setLayout(FillLayout2);
menuBar1 = new Menu(Calculator ,
SWT.BAR);
Calculator.setMenuBar(menuBar1);
Menu4 = new Menu(Calculator ,
SWT.DROP_DOWN);
MenuItem4 = new MenuItem(menuBar1 ,
SWT.CASCADE);
MenuItem4.setText("Edit");
MenuItem4.setMenu(Menu4);
MenuItem5 = new MenuItem(Menu4 ,
SWT.PUSH);
MenuItem5.setText("Copy");
MenuItem6 = new MenuItem(Menu4 ,
SWT.PUSH);
MenuItem6.setText("Paste");
Menu7 = new Menu(Calculator ,
SWT.DROP_DOWN);
MenuItem7 = new MenuItem(menuBar1 ,
SWT.CASCADE);
MenuItem7.setText("View");
MenuItem7.setMenu(Menu7);
MenuItem8 = new MenuItem(Menu7 ,
SWT.PUSH);
MenuItem8.setText("Standard");
MenuItem9 = new MenuItem(Menu7 ,
SWT.PUSH);
MenuItem9.setText("Scientific");
MenuItem10 = new MenuItem(Menu7 ,
SWT.PUSH);
MenuItem10.setText("Digital
Grouping");
Menu11 = new Menu(Calculator ,
SWT.DROP_DOWN);
MenuItem11 = new MenuItem(menuBar1 ,
SWT.CASCADE);
MenuItem11.setText("Help");
MenuItem11.setMenu(Menu11);
MenuItem12 = new MenuItem(Menu11 ,
SWT.PUSH);
MenuItem12.setText("Help Topics");
MenuItem13 = new MenuItem(Menu11 ,
SWT.PUSH);
MenuItem13.setText("About
Calculator");
Composite14 = new Composite(Calculator ,
SWT.FLAT);
RowLayout15 = new
RowLayout(SWT.VERTICAL);
Composite14.setLayout(RowLayout15);
Composite16 = new Composite(Composite14
, SWT.FLAT);
Text17 = new Text(Composite16 ,
SWT.BORDER);
Text17.setBounds(1 , 2 , 170 , 20);
Composite18 = new Composite(Composite14
, SWT.FLAT);
GridLayout19 = new GridLayout();
Composite18.setLayout(GridLayout19);
GridLayout19.numColumns = 4;
GridLayout19.horizontalSpacing = 16;
Button20 = new Button(Composite18 ,
SWT.PUSH);
Button20.setText("");
Button21 = new Button(Composite18 ,
SWT.PUSH);
Button21.setText("Backspace");
Button22 = new Button(Composite18 ,
SWT.PUSH);
Button22.setText("CE");
Button23 = new Button(Composite18 ,
SWT.PUSH);
Button23.setText("C");
JCalcPanel = new Composite(Composite14
, SWT.FLAT);
GridLayout25 = new GridLayout();
JCalcPanel.setLayout(GridLayout25);
GridLayout25.numColumns = 6;
GridLayout25.horizontalSpacing = 4;
Button26 = new Button(JCalcPanel ,
SWT.PUSH);
Button26.setText("MC");
Button27 = new Button(JCalcPanel ,
SWT.PUSH);
Button27.setText("7");
Button28 = new Button(JCalcPanel ,
SWT.PUSH);
Button28.setText("8");
Button29 = new Button(JCalcPanel ,
SWT.PUSH);
Button29.setText("9");
Button30 = new Button(JCalcPanel ,
SWT.PUSH);
Button30.setText("/");
Button31 = new Button(JCalcPanel ,
SWT.PUSH);
Button31.setText("sqrt");
Button32 = new Button(JCalcPanel ,
SWT.PUSH);
Button32.setText("MR");
Button33 = new Button(JCalcPanel ,
SWT.PUSH);
Button33.setText("4");
Button34 = new Button(JCalcPanel ,
SWT.PUSH);
Button34.setText("5");
Button35 = new Button(JCalcPanel ,
SWT.PUSH);
Button35.setText("6");
Button36 = new Button(JCalcPanel ,
SWT.PUSH);
Button36.setText("*");
Button37 = new Button(JCalcPanel ,
SWT.PUSH);
Button37.setText("%");
Button38 = new Button(JCalcPanel ,
SWT.PUSH);
Button38.setText("MS");
Button39 = new Button(JCalcPanel ,
SWT.PUSH);
Button39.setText("1");
Button40 = new Button(JCalcPanel ,
SWT.PUSH);
Button40.setText("2");
Button41 = new Button(JCalcPanel ,
SWT.PUSH);
Button41.setText("3");
Button42 = new Button(JCalcPanel ,
SWT.PUSH);
Button42.setText("-");
Button43 = new Button(JCalcPanel ,
SWT.PUSH);
Button43.setText("1/x");
Button44 = new Button(JCalcPanel ,
SWT.PUSH);
Button44.setText("M+");
Button45 = new Button(JCalcPanel ,
SWT.PUSH);
Button45.setText("0");
Button46 = new Button(JCalcPanel ,
SWT.PUSH);
Button46.setText("+/-");
Button47 = new Button(JCalcPanel ,
SWT.PUSH);
Button47.setText(".");
Button48 = new Button(JCalcPanel ,
SWT.PUSH);
Button48.setText("+");
Button49 = new Button(JCalcPanel ,
SWT.PUSH);
Button49.setText("=");
Calculator.open();
while
(!Calculator.isDisposed ()) {
if
(!Display2.readAndDispatch ())
Display2.sleep
();
}
Display2.dispose
();
}
public Object
getComponent(String name) {
Object result = null;
if (name.equalsIgnoreCase("FillLayout2")) {
result =
FillLayout2;
}
else if
(name.equalsIgnoreCase("Display2")) {
result =
Display2;
}
else if
(name.equalsIgnoreCase("Calculator")) {
result =
Calculator;
}
else if (name.equalsIgnoreCase("menuBar1")) {
result =
menuBar1;
}
else if
(name.equalsIgnoreCase("Menu4")) {
result = Menu4;
}
else if
(name.equalsIgnoreCase("MenuItem4")) {
result =
MenuItem4;
}
else if
(name.equalsIgnoreCase("MenuItem5")) {
result =
MenuItem5;
}
else if
(name.equalsIgnoreCase("MenuItem6")) {
result =
MenuItem6;
}
else if
(name.equalsIgnoreCase("Menu7")) {
result = Menu7;
}
else if
(name.equalsIgnoreCase("MenuItem7")) {
result = MenuItem7;
}
else if
(name.equalsIgnoreCase("MenuItem8")) {
result =
MenuItem8;
}
else if
(name.equalsIgnoreCase("MenuItem9")) {
result =
MenuItem9;
}
else if
(name.equalsIgnoreCase("MenuItem10")) {
result =
MenuItem10;
}
else if (name.equalsIgnoreCase("Menu11")) {
result = Menu11;
}
else if
(name.equalsIgnoreCase("MenuItem11")) {
result =
MenuItem11;
}
else if
(name.equalsIgnoreCase("MenuItem12")) {
result =
MenuItem12;
}
else if (name.equalsIgnoreCase("MenuItem13")) {
result =
MenuItem13;
}
else if
(name.equalsIgnoreCase("Composite14")) {
result =
Composite14;
}
else if
(name.equalsIgnoreCase("RowLayout15")) {
result =
RowLayout15;
}
else if (name.equalsIgnoreCase("Composite16")) {
result =
Composite16;
}
else if
(name.equalsIgnoreCase("Text17")) {
result = Text17;
}
else if
(name.equalsIgnoreCase("Composite18")) {
result =
Composite18;
}
else if (name.equalsIgnoreCase("GridLayout19")) {
result =
GridLayout19;
}
else if
(name.equalsIgnoreCase("Button20")) {
result =
Button20;
}
else if
(name.equalsIgnoreCase("Button21")) {
result =
Button21;
}
else if
(name.equalsIgnoreCase("Button22")) {
result =
Button22;
}
else if
(name.equalsIgnoreCase("Button23")) {
result =
Button23;
}
else if
(name.equalsIgnoreCase("JCalcPanel")) {
result =
JCalcPanel;
}
else if
(name.equalsIgnoreCase("GridLayout25")) {
result
= GridLayout25;
}
else if
(name.equalsIgnoreCase("Button26")) {
result =
Button26;
}
else if
(name.equalsIgnoreCase("Button27")) {
result =
Button27;
}
else if
(name.equalsIgnoreCase("Button28")) {
result = Button28;
}
else if
(name.equalsIgnoreCase("Button29")) {
result =
Button29;
}
else if
(name.equalsIgnoreCase("Button30")) {
result =
Button30;
}
else if
(name.equalsIgnoreCase("Button31")) {
result =
Button31;
}
else if
(name.equalsIgnoreCase("Button32")) {
result =
Button32;
}
else if
(name.equalsIgnoreCase("Button33")) {
result =
Button33;
}
else if
(name.equalsIgnoreCase("Button34")) {
result =
Button34;
}
else if (name.equalsIgnoreCase("Button35")) {
result =
Button35;
}
else if
(name.equalsIgnoreCase("Button36")) {
result =
Button36;
}
else if
(name.equalsIgnoreCase("Button37")) {
result =
Button37;
}
else if
(name.equalsIgnoreCase("Button38")) {
result =
Button38;
}
else if
(name.equalsIgnoreCase("Button39")) {
result =
Button39;
}
else if
(name.equalsIgnoreCase("Button40")) {
result =
Button40;
}
else if
(name.equalsIgnoreCase("Button41")) {
result = Button41;
}
else if
(name.equalsIgnoreCase("Button42")) {
result =
Button42;
}
else if
(name.equalsIgnoreCase("Button43")) {
result =
Button43;
}
else if
(name.equalsIgnoreCase("Button44")) {
result =
Button44;
}
else if
(name.equalsIgnoreCase("Button45")) {
result =
Button45;
}
else if
(name.equalsIgnoreCase("Button46")) {
result =
Button46;
}
else if
(name.equalsIgnoreCase("Button47")) {
result =
Button47;
}
else if (name.equalsIgnoreCase("Button48")) {
result =
Button48;
}
else if
(name.equalsIgnoreCase("Button49")) {
result =
Button49;
}
return(result);
}
public static CalculatorGui
getInstance() {
if ( gui_instance == null ) {
gui_instance
= new
CalculatorGui();
gui_instance.createComponents();
}
return gui_instance;
}
public static void main(String[] args) {
getInstance();
}
protected Button
Button40;
protected Button
Button41;
protected Shell
Calculator;
protected FillLayout
FillLayout2;
protected GridLayout
GridLayout19;
protected MenuItem
MenuItem8;
protected MenuItem
MenuItem11;
protected MenuItem
MenuItem4;
protected GridLayout
GridLayout25;
protected MenuItem
MenuItem7;
protected RowLayout
RowLayout15;
protected MenuItem
MenuItem10;
protected Menu
Menu11;
protected Composite
JCalcPanel;
protected Display
Display2;
protected Menu
Menu4;
protected MenuItem
MenuItem13;
protected MenuItem
MenuItem6;
protected Composite
Composite18;
protected Composite
Composite16;
protected Text
Text17;
protected Menu
menuBar1;
protected Button
Button31;
protected Button
Button32;
protected Button
Button33;
protected Button
Button34;
protected Button
Button35;
protected Button
Button36;
protected Button
Button37;
protected Button
Button38;
protected Composite
Composite14;
protected Menu
Menu7;
protected Button
Button39;
protected MenuItem
MenuItem12;
protected MenuItem
MenuItem5;
protected Button
Button49;
protected Button
Button48;
protected Button
Button47;
protected Button
Button46;
protected Button
Button45;
protected Button
Button20;
protected Button
Button21;
protected Button
Button22;
protected Button
Button23;
protected Button
Button26;
protected Button
Button27;
protected Button
Button42;
protected Button
Button43;
protected Button
Button44;
protected Button
Button30;
private static CalculatorGui
gui_instance;
protected Button
Button28;
protected Button
Button29;
protected MenuItem
MenuItem9;
////>>>>
CalculatorGui: fields and methods
//// Add fields and methods below.
////<<<<
CalculatorGui: fields and methods
}