summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-14 16:26:22 -0700
committerKeith Packard <keithp@keithp.com>2014-06-14 16:26:22 -0700
commit951fda701ed31f4d8390c130215597e8f63e837e (patch)
treecc4db6d99003059aedd6bc3447e30f68cfa417dd
parent8e00f59be582de86cef28b33ce5523f39d3dc933 (diff)
altosuilib: Make graph enable buttons be CheckBoxes instead of RadioButtons
aj noticed. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosuilib/AltosUIEnable.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/altosuilib/AltosUIEnable.java b/altosuilib/AltosUIEnable.java
index 8d42c09b..da98797a 100644
--- a/altosuilib/AltosUIEnable.java
+++ b/altosuilib/AltosUIEnable.java
@@ -45,7 +45,7 @@ public class AltosUIEnable extends Container {
class GraphElement implements ActionListener {
AltosUIGrapher grapher;
- JRadioButton enable;
+ JCheckBox enable;
String name;
public void actionPerformed(ActionEvent ae) {
@@ -55,7 +55,7 @@ public class AltosUIEnable extends Container {
GraphElement (String name, AltosUIGrapher grapher, boolean enabled) {
this.name = name;
this.grapher = grapher;
- enable = new JRadioButton(name, enabled);
+ enable = new JCheckBox(name, enabled);
grapher.set_enable(enabled);
enable.addActionListener(this);
}
@@ -86,10 +86,10 @@ public class AltosUIEnable extends Container {
/* Imperial units setting */
/* Add label */
- JRadioButton imperial_units = new JRadioButton("Imperial Units", AltosUIPreferences.imperial_units());
+ JCheckBox imperial_units = new JCheckBox("Imperial Units", AltosUIPreferences.imperial_units());
imperial_units.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- JRadioButton item = (JRadioButton) e.getSource();
+ JCheckBox item = (JCheckBox) e.getSource();
boolean enabled = item.isSelected();
AltosUIPreferences.set_imperial_units(enabled);
}