I don't know why, but they are, so just replace them with
setVisible calls.
Signed-off-by: Keith Packard <keithp@keithp.com>
- label.show();
- value.show();
+ label.setVisible(true);
+ value.setVisible(true);
- label.hide();
- value.hide();
+ label.setVisible(false);
+ value.setVisible(false);
}
public AscentValue (GridBagLayout layout, int y, String text) {
GridBagConstraints c = new GridBagConstraints();
}
public AscentValue (GridBagLayout layout, int y, String text) {
GridBagConstraints c = new GridBagConstraints();
abstract void show(AltosState state, int crc_errors);
void show() {
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);
- label.hide();
- value.hide();
- lights.hide();
+ label.setVisible(false);
+ value.setVisible(false);
+ lights.setVisible(false);
abstract void show(AltosState state, int crc_errors);
void show() {
abstract void show(AltosState state, int crc_errors);
void show() {
- label.show();
- value.show();
+ label.setVisible(true);
+ value.setVisible(true);
- label.hide();
- value.hide();
+ label.setVisible(false);
+ value.setVisible(false);
}
void show(String format, double v) {
}
void show(String format, double v) {
- label.show();
- value1.show();
- value2.show();
+ label.setVisible(true);
+ value1.setVisible(true);
+ value2.setVisible(true);
- label.hide();
- value1.hide();
- value2.hide();
+ label.setVisible(false);
+ value1.setVisible(false);
+ value2.setVisible(false);
}
abstract void show(AltosState state, int crc_errors);
}
abstract void show(AltosState state, int crc_errors);
- label.show();
- value.show();
+ label.setVisible(true);
+ value.setVisible(true);
- label.hide();
- value.hide();
+ label.setVisible(false);
+ value.setVisible(false);
}
void show(String format, double v) {
}
void show(String format, double v) {
- label.show();
- value.show();
- lights.show();
+ label.setVisible(true);
+ value.setVisible(true);
+ lights.setVisible(true);
- 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) {
void show(AltosState state, int crc_errors) {}
void show() {
void show(AltosState state, int crc_errors) {}
void show() {
- label.show();
- value.show();
+ label.setVisible(true);
+ value.setVisible(true);
- label.hide();
- value.hide();
+ label.setVisible(false);
+ value.setVisible(false);