List of usage examples for java.awt Label show
@Deprecated public void show()
From source file:Presentation.MainWindow.java
/** Update des valeurs de temprature et d'humidit en temps rel */ public void updateLiveValues(float temperature, float humidite, boolean condense) { Component[] labels = this.tPanel.getComponents(); if (labels.length > 0) { if (labels[0] instanceof Label) { Label nLabelTemp = (Label) labels[0]; nLabelTemp.setText("Temprature du frigo : " + temperature + " C"); }//from w ww. ja v a 2 s .c o m if (labels[1] instanceof Label) { Label nLabelTemp = (Label) labels[1]; nLabelTemp.setText( "Temprature extrieure : " + Singleton.getInstance().getMock().getOutdoorTemp() + " C"); } if (labels[2] instanceof Label) { Label nLabelHumid = (Label) labels[2]; nLabelHumid.setText("Humidit l'intrieur du frigo : " + humidite + " %"); } if (labels[3] instanceof Label) { Label nLabelCondense = (Label) labels[3]; if (!condense) nLabelCondense.hide(); else nLabelCondense.show(); } show(); } else showLiveValues(temperature, humidite, condense); }