@@ -0,0 +1,1227 @@
+package com.jeromecompsci.dgui.examples;%0A%0Aimport com.jeromecompsci.dgui.*;%0A%0A/**%0A * @author Derek Wang%0A */%0Apublic class AdditionProgram %7B%0A%0A    private TextField entryA, entryB;%0A    private Window window;%0A    private Label resultLabel;%0A    private Button calculateButton;%0A%0A    public AdditionProgram() %7B%0A        entryA = new TextField();%0A        entryB = new TextField();%0A        resultLabel = new Label(%22%22);%0A        calculateButton = new Button(%22 = %22);%0A%0A        resultLabel.setWidth(100);%0A        calculateButton.bind(this, %22calculateButtonClicked%22);%0A%0A        window = new Window(%0A                new HCompactPane(new Label(%22A %22), entryA, new Label(%22 + %22), new Label(%22B %22), entryB, calculateButton, resultLabel)%0A        );%0A    %7D%0A%0A    public void calculateButtonClicked() %7B%0A        try %7B%0A            int a = Integer.parseInt(entryA.getText());%0A            int b = Integer.parseInt(entryB.getText());%0A            int result = a + b;%0A            resultLabel.setText(%22 %22 + Integer.toString(result));%0A        %7D catch (NumberFormatException e) %7B%0A            resultLabel.setText(%22 ERR!%22);%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        AdditionProgram a = new AdditionProgram();%0A        a.window.show();%0A    %7D%0A%7D%0A

Add another example (a small calculator-like program that can do addition)