altosuilib: Remove 'cal_data' param from AltosGraphNew constructor
[fw/altos] / micropeak / MicroStatsTable.java
index 798d65350b85123027114e7174f6e6f23e149699..e095e3a4d5ddd3352ad8f62b741b39314ddecdbd 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -19,8 +20,8 @@ package org.altusmetrum.micropeak;
 
 import java.awt.*;
 import javax.swing.*;
-import org.altusmetrum.altoslib_4.*;
-import org.altusmetrum.altosuilib_2.*;
+import org.altusmetrum.altoslib_11.*;
+import org.altusmetrum.altosuilib_11.*;
 
 public class MicroStatsTable extends JComponent implements AltosFontListener {
        GridBagLayout   layout;
@@ -59,9 +60,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;