JAL-1807 Bob's first commit -- Applet loaded; needs image
[jalview.git] / src / awt2swing / CheckboxMenuItem.java
diff --git a/src/awt2swing/CheckboxMenuItem.java b/src/awt2swing/CheckboxMenuItem.java
new file mode 100644 (file)
index 0000000..4be61dd
--- /dev/null
@@ -0,0 +1,28 @@
+package awt2swing;
+
+import javax.swing.JCheckBoxMenuItem;
+
+public class CheckboxMenuItem extends JCheckBoxMenuItem {
+
+       public CheckboxMenuItem(String string) {
+               super(string);
+       }
+
+       public CheckboxMenuItem() {
+       }
+
+       public CheckboxMenuItem(String string, boolean b) {
+               super(string, b);
+       }
+
+       public boolean getState() {
+               return isSelected();
+       }
+       
+       
+       public void setState(boolean tf) {
+               setSelected(tf);
+       }
+
+
+}