Sound Cards Info detail
This commit is contained in:
parent
b5ac6ffbf1
commit
df767a06c6
|
@ -118,6 +118,7 @@ public class DetailForm {
|
||||||
detailForm.getStorageTextPane().setText(getStorageInfo());
|
detailForm.getStorageTextPane().setText(getStorageInfo());
|
||||||
detailForm.getGraphicsCardTextPane().setText(getGraphicsCardsInfo());
|
detailForm.getGraphicsCardTextPane().setText(getGraphicsCardsInfo());
|
||||||
detailForm.getDisplayTextPane().setText(getDisplayInfo());
|
detailForm.getDisplayTextPane().setText(getDisplayInfo());
|
||||||
|
detailForm.getSoundCardTextPane().setText(getSoundCardsInfo());
|
||||||
|
|
||||||
detailForm.getPowerSourceTextPane().setText(PowerSourceForm.getPowerInfoText(hardware.getPowerSources()));
|
detailForm.getPowerSourceTextPane().setText(PowerSourceForm.getPowerInfoText(hardware.getPowerSources()));
|
||||||
}
|
}
|
||||||
|
@ -233,6 +234,25 @@ public class DetailForm {
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static String getSoundCardsInfo() {
|
||||||
|
StringBuilder builder = new StringBuilder();
|
||||||
|
List<SoundCard> soundCards = App.si.getHardware().getSoundCards();
|
||||||
|
|
||||||
|
for (int i = 0; i < soundCards.size(); i++) {
|
||||||
|
SoundCard soundCard = soundCards.get(i);
|
||||||
|
|
||||||
|
builder.append("<b>SoundCard: </b>#").append(i);
|
||||||
|
builder.append("<br/><b>Name: </b>").append(soundCard.getName());
|
||||||
|
builder.append("<br/><b>Codec: </b>").append(soundCard.getCodec());
|
||||||
|
builder.append("<br/><b>Driver Version: </b>").append(soundCard.getDriverVersion());
|
||||||
|
|
||||||
|
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