projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Delay mapping Flash UI until flashing actually starts
[fw/altos]
/
ao-tools
/
altosui
/
AltosFlashUI.java
diff --git
a/ao-tools/altosui/AltosFlashUI.java
b/ao-tools/altosui/AltosFlashUI.java
index 0c2041e3cf338f9a8fbdf7adf3125549aaef13aa..b88a16b35b77bf6725e0091c064dbe2c4a0118c2 100644
(file)
--- a/
ao-tools/altosui/AltosFlashUI.java
+++ b/
ao-tools/altosui/AltosFlashUI.java
@@
-57,8
+57,10
@@
public class AltosFlashUI
} else {
String cmd = e.getActionCommand();
if (cmd.equals("done"))
} else {
String cmd = e.getActionCommand();
if (cmd.equals("done"))
- dispose();
- else {
+ ;
+ else if (cmd.equals("start")) {
+ setVisible(true);
+ } else {
pbar.setValue(e.getID());
pbar.setString(cmd);
}
pbar.setValue(e.getID());
pbar.setString(cmd);
}
@@
-88,15
+90,14
@@
public class AltosFlashUI
"Cannot open image",
file.toString(),
JOptionPane.ERROR_MESSAGE);
"Cannot open image",
file.toString(),
JOptionPane.ERROR_MESSAGE);
- return;
} catch (IOException e) {
JOptionPane.showMessageDialog(frame,
e.getMessage(),
file.toString(),
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
JOptionPane.showMessageDialog(frame,
e.getMessage(),
file.toString(),
JOptionPane.ERROR_MESSAGE);
- return;
} catch (InterruptedException ie) {
}
} catch (InterruptedException ie) {
}
+ dispose();
}
public void abort() {
}
public void abort() {