Displays Info detail
This commit is contained in:
parent
d93850d754
commit
b5ac6ffbf1
|
@ -117,6 +117,7 @@ public class DetailForm {
|
||||||
detailForm.getMemoryTextPane().setText(MemoryForm.getMemoryInfo());
|
detailForm.getMemoryTextPane().setText(MemoryForm.getMemoryInfo());
|
||||||
detailForm.getStorageTextPane().setText(getStorageInfo());
|
detailForm.getStorageTextPane().setText(getStorageInfo());
|
||||||
detailForm.getGraphicsCardTextPane().setText(getGraphicsCardsInfo());
|
detailForm.getGraphicsCardTextPane().setText(getGraphicsCardsInfo());
|
||||||
|
detailForm.getDisplayTextPane().setText(getDisplayInfo());
|
||||||
|
|
||||||
detailForm.getPowerSourceTextPane().setText(PowerSourceForm.getPowerInfoText(hardware.getPowerSources()));
|
detailForm.getPowerSourceTextPane().setText(PowerSourceForm.getPowerInfoText(hardware.getPowerSources()));
|
||||||
}
|
}
|
||||||
|
@ -215,6 +216,23 @@ public class DetailForm {
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String getDisplayInfo() {
|
||||||
|
StringBuilder builder = new StringBuilder();
|
||||||
|
List<Display> displays = App.si.getHardware().getDisplays();
|
||||||
|
|
||||||
|
for (int i = 0; i < displays.size(); i++) {
|
||||||
|
Display display = displays.get(i);
|
||||||
|
|
||||||
|
builder.append("<b>Display: </b>#").append(i);
|
||||||
|
builder.append("<br/>");
|
||||||
|
builder.append(display.toString().replaceAll("\n", "<br/>"));
|
||||||
|
builder.append("<br/>");
|
||||||
|
builder.append("<br/>");
|
||||||
|
}
|
||||||
|
|
||||||
|
return builder.toString();
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
// GUI initializer generated by IntelliJ IDEA GUI Designer
|
||||||
// >>> IMPORTANT!! <<<
|
// >>> IMPORTANT!! <<<
|
||||||
|
|
Loading…
Reference in New Issue