summaryrefslogtreecommitdiff
path: root/altosui/AltosAscent.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-25 22:04:09 -0700
committerKeith Packard <keithp@keithp.com>2011-03-25 22:04:09 -0700
commit2c121f1ef495e8af3eb39210baa40e212b691894 (patch)
tree1ee10f8b02e1c3a676d5155dcda4a2e5cfdcdaf7 /altosui/AltosAscent.java
parentb155647472ddfacb07c5ffa832e4d1f4a13ad342 (diff)
altosui: swing hide/show methods are deprecated
I don't know why, but they are, so just replace them with setVisible calls. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosAscent.java')
-rw-r--r--altosui/AltosAscent.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/altosui/AltosAscent.java b/altosui/AltosAscent.java
index 0fbc5de2..8a4aa58b 100644
--- a/altosui/AltosAscent.java
+++ b/altosui/AltosAscent.java
@@ -89,13 +89,13 @@ public class AltosAscent extends JComponent implements AltosFlightDisplay {
}
void show() {
- label.show();
- value.show();
+ label.setVisible(true);
+ value.setVisible(true);
}
void hide() {
- label.hide();
- value.hide();
+ label.setVisible(false);
+ value.setVisible(false);
}
public AscentValue (GridBagLayout layout, int y, String text) {
GridBagConstraints c = new GridBagConstraints();