X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosDescent.java;h=addd687810e4622352df37c3ad987a70b6791a69;hb=f558cfa1df77c36a459168c1953d0945ee5a7f9f;hp=594a7a09bb68cc71e9fd025b93134439fb434e94;hpb=f3e68341f6f5daaf26dd162e4f9a06c29988986a;p=fw%2Faltos diff --git a/altosui/AltosDescent.java b/altosui/AltosDescent.java index 594a7a09..addd6878 100644 --- a/altosui/AltosDescent.java +++ b/altosui/AltosDescent.java @@ -39,15 +39,15 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay { abstract void show(AltosState state, int crc_errors); void show() { - label.show(); - value.show(); - lights.show(); + label.setVisible(true); + value.setVisible(true); + lights.setVisible(true); } void hide() { - label.hide(); - value.hide(); - lights.hide(); + label.setVisible(false); + value.setVisible(false); + lights.setVisible(false); } void reset() { @@ -104,13 +104,13 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay { abstract void show(AltosState state, int crc_errors); void show() { - label.show(); - value.show(); + label.setVisible(true); + value.setVisible(true); } void hide() { - label.hide(); - value.hide(); + label.setVisible(false); + value.setVisible(false); } void show(String format, double v) { @@ -158,15 +158,15 @@ public class AltosDescent extends JComponent implements AltosFlightDisplay { } void show() { - label.show(); - value1.show(); - value2.show(); + label.setVisible(true); + value1.setVisible(true); + value2.setVisible(true); } void hide() { - label.hide(); - value1.hide(); - value2.hide(); + label.setVisible(false); + value1.setVisible(false); + value2.setVisible(false); } abstract void show(AltosState state, int crc_errors);