projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: swing hide/show methods are deprecated
[fw/altos]
/
altosui
/
AltosPad.java
diff --git
a/altosui/AltosPad.java
b/altosui/AltosPad.java
index 2f59e879a38d00e981733b2ab38d6826da8b47ae..2d800e8aae2768ffe64ad2fe11aaa18a55a2566c 100644
(file)
--- a/
altosui/AltosPad.java
+++ b/
altosui/AltosPad.java
@@
-43,15
+43,15
@@
public class AltosPad extends JComponent implements AltosFlightDisplay {
}
public void show() {
}
public void show() {
- label.s
how(
);
- value.s
how(
);
- lights.s
how(
);
+ label.s
etVisible(true
);
+ value.s
etVisible(true
);
+ lights.s
etVisible(true
);
}
public void hide() {
}
public void hide() {
- label.
hide(
);
- value.
hide(
);
- lights.
hide(
);
+ label.
setVisible(false
);
+ value.
setVisible(false
);
+ lights.
setVisible(false
);
}
public LaunchStatus (GridBagLayout layout, int y, String text) {
}
public LaunchStatus (GridBagLayout layout, int y, String text) {
@@
-96,13
+96,13
@@
public class AltosPad extends JComponent implements AltosFlightDisplay {
void show(AltosState state, int crc_errors) {}
void show() {
void show(AltosState state, int crc_errors) {}
void show() {
- label.s
how(
);
- value.s
how(
);
+ label.s
etVisible(true
);
+ value.s
etVisible(true
);
}
void hide() {
}
void hide() {
- label.
hide(
);
- value.
hide(
);
+ label.
setVisible(false
);
+ value.
setVisible(false
);
}
void reset() {
}
void reset() {