summaryrefslogtreecommitdiff
path: root/altosuilib/AltosDeviceDialog.java
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2014-06-15 17:47:41 -0600
committerBdale Garbee <bdale@gag.com>2014-06-15 17:47:41 -0600
commitc5cfc0d6e507d093987741b6ffaf69ebb24caa4b (patch)
treea75b83343939e96592ac07178f2011d82ea6ded8 /altosuilib/AltosDeviceDialog.java
parent1b3d07ede530fa40cb7257fb1725c969ba60e0f0 (diff)
parent9ab3a1de95b705783c31a7e16447f52c10b6b480 (diff)
Merge branch 'branch-1.4' into debian
Diffstat (limited to 'altosuilib/AltosDeviceDialog.java')
-rw-r--r--altosuilib/AltosDeviceDialog.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/altosuilib/AltosDeviceDialog.java b/altosuilib/AltosDeviceDialog.java
index 73bc0b2f..0bedea97 100644
--- a/altosuilib/AltosDeviceDialog.java
+++ b/altosuilib/AltosDeviceDialog.java
@@ -15,7 +15,7 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altosuilib_1;
+package org.altusmetrum.altosuilib_2;
import javax.swing.*;
import java.awt.*;
@@ -23,14 +23,14 @@ import java.awt.event.*;
public abstract class AltosDeviceDialog extends AltosUIDialog implements ActionListener {
- private AltosDevice value;
- private JList list;
- private JButton cancel_button;
- private JButton select_button;
- public Frame frame;
- public int product;
- public JPanel buttonPane;
-
+ private AltosDevice value;
+ private JList<AltosDevice> list;
+ private JButton cancel_button;
+ private JButton select_button;
+ public Frame frame;
+ public int product;
+ public JPanel buttonPane;
+
public AltosDevice getValue() {
return value;
}
@@ -65,7 +65,7 @@ public abstract class AltosDeviceDialog extends AltosUIDialog implements ActionL
select_button.setEnabled(false);
getRootPane().setDefaultButton(select_button);
- list = new JList(devices) {
+ list = new JList<AltosDevice>(devices) {
//Subclass JList to workaround bug 4832765, which can cause the
//scroll pane to not let the user easily scroll up to the beginning
//of the list. An alternative would be to set the unitIncrement