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