From 951fda701ed31f4d8390c130215597e8f63e837e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 14 Jun 2014 16:26:22 -0700 Subject: [PATCH] altosuilib: Make graph enable buttons be CheckBoxes instead of RadioButtons aj noticed. Signed-off-by: Keith Packard --- altosuilib/AltosUIEnable.java | 8 ++++---- 1 file 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); } -- 2.30.2