powerPSPowerProducedLabel.setText("power produced:         " + numFormat.format(myPowerPS.getPowerProduced()) + " W"); powerStoreLevelLabel.setText("power level:    " + numFormat.format(myPowerStore.getCurrentLevel()) + " W"); }
if (myPowerPS != null) { powerPSPowerProducedLabel.setText("power produced:         " + numFormat.format(myPowerPS.getPowerProduced()) + " W"); } powerStoreLevelLabel.setText("power level:    " + numFormat.format(myPowerStore.getCurrentLevel()) + " W"); }
    public void refresh() {        powerPSPowerProducedLabel.setText("power produced:         "                + numFormat.format(myPowerPS.getPowerProduced()) + " W");        powerStoreLevelLabel.setText("power level:    "                + numFormat.format(myPowerStore.getCurrentLevel()) + " W");    }