summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Checkbox2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Reference Architectures and Patterns/hjp5/examples/Checkbox2.inc')
-rw-r--r--Master/Reference Architectures and Patterns/hjp5/examples/Checkbox2.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/hjp5/examples/Checkbox2.inc b/Master/Reference Architectures and Patterns/hjp5/examples/Checkbox2.inc
new file mode 100644
index 0000000..12d023f
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/hjp5/examples/Checkbox2.inc
@@ -0,0 +1,7 @@
+/* Checkbox2.inc */
+
+public void itemStateChanged(ItemEvent event)
+{
+ Checkbox cb = (Checkbox) event.getItemSelectable();
+ System.out.println(cb.getLabel() + ": " + cb.getState());
+} \ No newline at end of file