File tree Expand file tree Collapse file tree
teachingkidsprogramming/section07events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import java .util .Random ;
55
66/**
7+ * <img src="http://png-1.findicons.com/files/icons/2258/addictive_flavour/48/color_wheel.png" align="left" >
78 * Every color under the
89 * <font color="red">r</font><font color="yellow">a</font><font color="orange">i</font><font color="green">n</font><font color="blue">b</font><font color="purple">o</font><font
910 * color="blue">w</font>,
Original file line number Diff line number Diff line change 55import com .spun .util .NumberUtils ;
66
77/**
8- *
9- * MessageBox is a window that can collect a numerical input from the user
10- * or prints a message for the user to read. <br/>
8+ * <img src="http://www.mhhe.com/engcs/compsci/wu2/graphics/wu2java/common/javabook2Doc/mbox3.gif" align="left" >
9+ * MessageBox is a window that can collect numerical input from the user
10+ * or print a message for the user to read. <br/>
1111 *
1212 *
1313 *
Original file line number Diff line number Diff line change 1717import com .spun .util .FrameCloser ;
1818import com .spun .util .WindowUtils ;
1919
20+ /**
21+ * <img src="http://ftpmirror.your.org/pub/wikimedia/images/wikibooks/de/2/2c/JPanel_Add_JButton_PAGE_END.JPG" align="left" >
22+ * Program Window allows you to change the color of the background and more...
23+ */
2024public class ProgramWindow extends JPanel
2125{
2226 private ArrayList <Paintable > additional = new ArrayList <Paintable >();
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public void question1()
2020 }
2121 public void question2 (String letter1 )
2222 {
23- //code: add text 'You got a single' and then click on the first base
23+ //code: add text 'You got a single' and then left click on the first base
2424 //action: fail first in all case, draw base and pass after click
2525 }
2626 public void question3 ()
@@ -31,7 +31,7 @@ public void question3()
3131 }
3232 public void question4 ()
3333 {
34- //code: add text 'You got a home run' and then click on the home plate
34+ //code: add text 'You got a home run' and then right click on the home plate
3535 //action: fail first in all case, draw base and pass after click
3636 }
3737 public static void main (String [] args )
You can’t perform that action at this time.
0 commit comments