@@ -0,0 +1,1527 @@
+package com.jeromecompsci.dgui.examples;%0Aimport com.jeromecompsci.dgui.*;%0A%0A/**%0A * An example akin to BasicGUI (found at https://github.com/BasicGUI)%0A * This utility class is akin %22YourCode%22 in the original BasicGUI%0A * @author Derek Wang%0A */%0Apublic class BasicGUIDriver %7B%0A    public static BasicGUI gui;%0A%0A    public static void main(String%5B%5D args) %7B%0A        gui = new BasicGUI();%0A        gui.button1.bind(BasicGUIDriver.class, %22button1Clicked%22);%0A        gui.button2.bind(BasicGUIDriver.class, %22button2Clicked%22);%0A        /* Write code here to be run at application startup */%0A    %7D%0A%0A    public static void button1Clicked() %7B%0A        /* Write code here to be run when the first button is clicked */%0A        gui.label.setText(%22Button 1 Clicked!%22); // Example%0A    %7D%0A%0A    public static void button2Clicked() %7B%0A        /* Write code here to be run when the second button is clicked */%0A        gui.label.setText(%22Button 2 Clicked!%22); // Example%0A    %7D%0A%7D%0A%0A/**%0A * This class is akin to %22BasicGUI%22 in the original BasicGUI%0A * @author derek%0A */%0Aclass BasicGUI %7B%0A    private Window window;%0A    Label label = new Label(%22Label%22);%0A    TextField field1 = new TextField();%0A    TextField field2 = new TextField();%0A    Button button1 = new Button(%22Button 1%22);%0A    Button button2 = new Button(%22Button 2%22);%0A%0A    public BasicGUI() %7B%0A        window = new Window(%0A            new VPane(%0A                label,%0A                new HPane(field1, field2),%0A                new HPane(button1, button2)%0A            )%0A        );%0A        window.show();%0A    %7D%0A%7D%0A

Add BasicGUI example