summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosDeviceDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'ao-tools/altosui/AltosDeviceDialog.java')
-rw-r--r--ao-tools/altosui/AltosDeviceDialog.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/ao-tools/altosui/AltosDeviceDialog.java b/ao-tools/altosui/AltosDeviceDialog.java
index c60bd7c3..3df4c6eb 100644
--- a/ao-tools/altosui/AltosDeviceDialog.java
+++ b/ao-tools/altosui/AltosDeviceDialog.java
@@ -31,16 +31,16 @@ import altosui.AltosDevice;
public class AltosDeviceDialog extends JDialog implements ActionListener {
private static AltosDeviceDialog dialog;
- private static altos_device value = null;
+ private static AltosDevice value = null;
private JList list;
- public static altos_device show (Component frameComp, String product) {
+ public static AltosDevice show (Component frameComp, int product) {
Frame frame = JOptionPane.getFrameForComponent(frameComp);
AltosDevice[] devices;
devices = AltosDevice.list(product);
- if (devices != null & devices.length > 0) {
+ if (devices != null && devices.length > 0) {
value = null;
dialog = new AltosDeviceDialog(frame, frameComp,
devices,
@@ -153,7 +153,7 @@ public class AltosDeviceDialog extends JDialog implements ActionListener {
//Handle clicks on the Set and Cancel buttons.
public void actionPerformed(ActionEvent e) {
if ("select".equals(e.getActionCommand()))
- AltosDeviceDialog.value = (altos_device)(list.getSelectedValue());
+ AltosDeviceDialog.value = (AltosDevice)(list.getSelectedValue());
AltosDeviceDialog.dialog.setVisible(false);
}