summaryrefslogtreecommitdiff
path: root/altosui/AltosIgnite.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-29 09:37:11 -0700
committerKeith Packard <keithp@keithp.com>2011-03-29 09:37:11 -0700
commit2f9be009ef26e3d7539f5932d267d7a8a7bcb7eb (patch)
tree5e7dd5af3bbb27d5665174069f24a44559999f21 /altosui/AltosIgnite.java
parent573edcd7dfe10ac3251396eae88eece55d82bcb6 (diff)
altosui: Make deployment testing handle Connecting... dialog
Supporting the Connecting... dialog requires moving all serial communication to a separate thread. This was done by creating a worker thread and command queue to communicate between the UI and the serial line. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosIgnite.java')
-rw-r--r--altosui/AltosIgnite.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/altosui/AltosIgnite.java b/altosui/AltosIgnite.java
index d3638140..1171d2ed 100644
--- a/altosui/AltosIgnite.java
+++ b/altosui/AltosIgnite.java
@@ -19,6 +19,12 @@ package altosui;
import java.io.*;
import java.util.concurrent.*;
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import javax.swing.filechooser.FileNameExtensionFilter;
+import javax.swing.table.*;
+import javax.swing.event.*;
public class AltosIgnite {
AltosDevice device;
@@ -115,7 +121,7 @@ public class AltosIgnite {
return status;
}
- public String status_string(int status) {
+ public static String status_string(int status) {
switch (status) {
case Unknown: return "Unknown";
case Ready: return "Ready";
@@ -156,6 +162,10 @@ public class AltosIgnite {
serial = null;
}
+ public void set_frame(Frame frame) {
+ serial.set_frame(frame);
+ }
+
public AltosIgnite(AltosDevice in_device) throws FileNotFoundException, AltosSerialInUseException {
device = in_device;