Graphical User Interfaces
These are demo programs of the GUI's shown in chapter 17, with a few additions for completeness.
program |
code |
run it |
text field - event created by enter key (usual scheme) |
||
text field - event created by any change |
||
button |
||
check boxes |
||
check box group (radio buttons) |
||
choice box (drop-down list) |
||
list |
||
text area |
||
canvas |
||
panel |
||
border layout |
||
scroll bars with border layout |
||
buttons in panels |
||
mouse events |