import java.lang.*;
import java.util.*;
import javax.swing.*;
+import libaltosJNI.libaltos;
+import libaltosJNI.altos_device;
+import libaltosJNI.SWIGTYPE_p_altos_file;
+import libaltosJNI.SWIGTYPE_p_altos_list;
import altosui.AltosDevice;
-import altosui.AltosDeviceLinux;
public class AltosDeviceDialog {
- static AltosDevice show (JFrame frame, String product) {
- AltosDevice[] devices = null;
- if (System.getProperty("os.name").startsWith("Linux"))
- devices = AltosDeviceLinux.list(product);
+ static altos_device show (JFrame frame, String product) {
+ AltosDevice[] devices;
+ devices = AltosDevice.list(product);
if (devices != null & devices.length > 0) {
Object o = JOptionPane.showInputDialog(frame,
"Select a device",
null,
devices,
devices[0]);
- return (AltosDevice) o;
+ return (altos_device) o;
} else {
return null;
}