summaryrefslogtreecommitdiff
path: root/javax/swing/JRadioButton.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/JRadioButton.java')
-rw-r--r--javax/swing/JRadioButton.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/javax/swing/JRadioButton.java b/javax/swing/JRadioButton.java
new file mode 100644
index 000000000..047dcd5ef
--- /dev/null
+++ b/javax/swing/JRadioButton.java
@@ -0,0 +1,54 @@
+package javax.swing;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.plaf.*;
+
+public class JRadioButton extends JToggleButton
+{
+ JRadioButton()
+ {
+ this(null, null);
+ }
+ JRadioButton(Action a)
+ {
+ this();
+ setAction(a);
+ }
+
+ JRadioButton(Icon icon)
+ {
+ this(null, icon);
+ }
+
+ JRadioButton(String text)
+ {
+ this(text, null);
+ }
+
+ JRadioButton(String text, Icon icon)
+ {
+ super(text, icon);
+ }
+
+
+ AccessibleContext getAccessibleContext()
+ {
+ //Gets the AccessibleContext associated with this JRadioButton.
+ return null;
+ }
+
+ String getUIClassID()
+ {
+ //Returns a string that specifies the name of the L&F class that renders this component.
+ return "JRadioButton";
+ }
+
+ protected String paramString()
+ {
+ return "JRadioButton";
+ }
+}
+
+
+