projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
note need to push the updated repo with production binaries during release
[fw/altos]
/
altosuilib
/
AltosUIEnable.java
diff --git
a/altosuilib/AltosUIEnable.java
b/altosuilib/AltosUIEnable.java
index ea4bd00ab6b4874b12355e0de196ac2184a8929c..e227d2b774e283d6a9690f7b7ef614e0437f3672 100644
(file)
--- a/
altosuilib/AltosUIEnable.java
+++ b/
altosuilib/AltosUIEnable.java
@@
-15,7
+15,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 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.*;
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 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.*;
import org.jfree.ui.*;
import org.jfree.chart.*;
@@
-45,7
+45,7
@@
public class AltosUIEnable extends Container {
class GraphElement implements ActionListener {
AltosUIGrapher grapher;
class GraphElement implements ActionListener {
AltosUIGrapher grapher;
- J
RadioButton
enable;
+ J
CheckBox
enable;
String name;
public void actionPerformed(ActionEvent ae) {
String name;
public void actionPerformed(ActionEvent ae) {
@@
-55,8
+55,8
@@
public class AltosUIEnable extends Container {
GraphElement (String name, AltosUIGrapher grapher, boolean enabled) {
this.name = name;
this.grapher = grapher;
GraphElement (String name, AltosUIGrapher grapher, boolean enabled) {
this.name = name;
this.grapher = grapher;
- enable = new J
RadioButton
(name, enabled);
- grapher.set_enable(enabled);
+ enable = new J
CheckBox
(name, enabled);
+ grapher.set_enable(enabled);
enable.addActionListener(this);
}
}
enable.addActionListener(this);
}
}
@@
-86,10
+86,10
@@
public class AltosUIEnable extends Container {
/* Imperial units setting */
/* Add label */
/* Imperial units setting */
/* Add label */
- J
RadioButton imperial_units = new JRadioButton
("Imperial Units", AltosUIPreferences.imperial_units());
+ J
CheckBox imperial_units = new JCheckBox
("Imperial Units", AltosUIPreferences.imperial_units());
imperial_units.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
imperial_units.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- J
RadioButton item = (JRadioButton
) e.getSource();
+ J
CheckBox item = (JCheckBox
) e.getSource();
boolean enabled = item.isSelected();
AltosUIPreferences.set_imperial_units(enabled);
}
boolean enabled = item.isSelected();
AltosUIPreferences.set_imperial_units(enabled);
}