summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-14 20:08:40 -0700
committerKeith Packard <keithp@keithp.com>2014-06-14 20:08:40 -0700
commit823ef386f9dc5c5df197936f4254921f2e0282b0 (patch)
tree642b6f757c97cbbe8f807e35bb1182e8816a9835
parent5392ee3c5328f8384ed30a2d147e4be96075e064 (diff)
altoslib: AltosFlightStatsTable: another editable text field that shouldn't be
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosuilib/AltosFlightStatsTable.java1
-rw-r--r--micropeak/MicroStatsTable.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/altosuilib/AltosFlightStatsTable.java b/altosuilib/AltosFlightStatsTable.java
index b32e92a0..703dfb9d 100644
--- a/altosuilib/AltosFlightStatsTable.java
+++ b/altosuilib/AltosFlightStatsTable.java
@@ -55,6 +55,7 @@ public class AltosFlightStatsTable extends JComponent implements AltosFontListen
value = new JTextField[values.length];
for (int j = 0; j < values.length; j++) {
value[j] = new JTextField(values[j]);
+ value[j].setEditable(false);
value[j].setFont(AltosUILib.value_font);
value[j].setHorizontalAlignment(SwingConstants.RIGHT);
c.gridx = j+1; c.gridy = y;
diff --git a/micropeak/MicroStatsTable.java b/micropeak/MicroStatsTable.java
index 798d6535..3b17e731 100644
--- a/micropeak/MicroStatsTable.java
+++ b/micropeak/MicroStatsTable.java
@@ -59,9 +59,9 @@ public class MicroStatsTable extends JComponent implements AltosFontListener {
texts = new JTextField[values.length];
for (int j = 0; j < values.length; j++) {
JTextField value = new JTextField(values[j]);
+ value.setEditable(false);
value.setFont(AltosUILib.value_font);
value.setHorizontalAlignment(SwingConstants.RIGHT);
- value.setEditable(false);
texts[j] = value;
c.gridx = j+1; c.gridy = y;
c.anchor = GridBagConstraints.EAST;