power form added
This commit is contained in:
parent
6b2314c302
commit
2dbd99e660
|
@ -113,11 +113,11 @@ public class PowerSourceForm {
|
||||||
temperatureLabel.setIcon(new FlatSVGIcon("icons/Charging.svg"));
|
temperatureLabel.setIcon(new FlatSVGIcon("icons/Charging.svg"));
|
||||||
powerTextBuilder.append("Charging");
|
powerTextBuilder.append("Charging");
|
||||||
} else {
|
} else {
|
||||||
temperatureLabel.setIcon(new FlatSVGIcon("icons/indicator_light.svg"));
|
temperatureLabel.setIcon(new FlatSVGIcon("icons/indicator_light.svg", 10, 10));
|
||||||
powerTextBuilder.append("Remaining Time: " + formatTimeRemaining(powerSource.getTimeRemainingEstimated()));
|
powerTextBuilder.append("Remaining Time: " + formatTimeRemaining(powerSource.getTimeRemainingEstimated()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// powerTextBuilder.append(String.format(" / Temperature: %.1f°C", powerSource.getTemperature()));
|
powerTextBuilder.append(String.format(" / %.1f°C", powerSource.getTemperature()));
|
||||||
temperatureLabel.setText(powerTextBuilder.toString());
|
temperatureLabel.setText(powerTextBuilder.toString());
|
||||||
powerPanel.add(temperatureLabel, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
powerPanel.add(temperatureLabel, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue