diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-08 01:47:29 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-08 12:13:29 -0700 |
commit | 0e3e4f9c1e6a6bf972514f12c9d622258aa2aec2 (patch) | |
tree | c84c97e27556d0686bf26ea9e4f1af976cd9b1c7 /altosui/AltosUI.java | |
parent | f03ca0ab8799bfa5100eaa2577cfd7b9c37d05bf (diff) |
altosui: Convert from channels to frequencies
Major areas:
* Preferences are stored as frequencies instead
of channels
* Serial configuration is done using frequencies
* UI is presented with frequency lists
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 033f233c..885e60cd 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -26,7 +26,7 @@ import java.io.*; import java.util.*; import java.text.*; import java.util.prefs.*; -import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.*; import libaltosJNI.*; @@ -67,6 +67,16 @@ public class AltosUI extends JFrame { device.toShortString(), "Unkonwn I/O error", JOptionPane.ERROR_MESSAGE); + } catch (TimeoutException te) { + JOptionPane.showMessageDialog(this, + device.toShortString(), + "Timeout error", + JOptionPane.ERROR_MESSAGE); + } catch (InterruptedException ie) { + JOptionPane.showMessageDialog(this, + device.toShortString(), + "Interrupted exception", + JOptionPane.ERROR_MESSAGE); } } |