X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosuilib%2FAltosUIEnable.java;h=e227d2b774e283d6a9690f7b7ef614e0437f3672;hb=368c7d583380b4453f432d5a965a1e4c45a92f92;hp=40b5f0877175d5f4906d7aefcd11146a197b2b58;hpb=9e18c524fa2d1f648f265b3c3105f5ceacf06c10;p=fw%2Faltos diff --git a/altosuilib/AltosUIEnable.java b/altosuilib/AltosUIEnable.java index 40b5f087..e227d2b7 100644 --- a/altosuilib/AltosUIEnable.java +++ b/altosuilib/AltosUIEnable.java @@ -15,7 +15,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.altosuilib_1; +package org.altusmetrum.altosuilib_3; import java.awt.*; import java.awt.event.*; @@ -23,7 +23,7 @@ import javax.swing.*; import java.io.*; import java.util.concurrent.*; import java.util.*; -import org.altusmetrum.altoslib_3.*; +import org.altusmetrum.altoslib_5.*; import org.jfree.ui.*; import org.jfree.chart.*; @@ -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); }