diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java index bddf759e..a566f158 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/VirtDropDownConfigEditorWindowLayout.java @@ -31,9 +31,13 @@ import org.openslx.vm.VmMetaData.HWVersion; import org.openslx.vm.VmMetaData.SoundCardType; import org.openslx.vm.VmMetaData.UsbSpeed; -@SuppressWarnings("serial") public class VirtDropDownConfigEditorWindowLayout extends JDialog { + /** + * Version for serialization. + */ + private static final long serialVersionUID = -8808628177189132030L; + protected final JScrollPane pnlScrollPane; protected final JEditorPane pnlEditor; protected final JButton btnSave; @@ -66,43 +70,43 @@ public class VirtDropDownConfigEditorWindowLayout extends JDialog { * ComboBoxes - one for each device */ - cboSound = new ComboBox<>(new ComboBoxRenderer<SoundCardType>() { + cboSound = new ComboBox<SoundCardType>(new ComboBoxRenderer<SoundCardType>() { @Override public String renderItem(SoundCardType item) { return item.displayName; } - }); + }, SoundCardType.class); // 3D accelerationBox - cbo3DAcceleration = new ComboBox<>(new ComboBoxRenderer<DDAcceleration>() { + cbo3DAcceleration = new ComboBox<DDAcceleration>(new ComboBoxRenderer<DDAcceleration>() { @Override public String renderItem(DDAcceleration item) { return item.displayName; } - }); + }, DDAcceleration.class); // HardwareVersioBox - cboHWVersion = new ComboBox<>(new ComboBoxRenderer<HWVersion>() { + cboHWVersion = new ComboBox<HWVersion>(new ComboBoxRenderer<HWVersion>() { @Override public String renderItem(HWVersion item) { return item.displayName; } - }); + }, HWVersion.class); // HardwareVersioBox - cboE0VirtDev = new ComboBox<>(new ComboBoxRenderer<EthernetDevType>() { + cboE0VirtDev = new ComboBox<EthernetDevType>(new ComboBoxRenderer<EthernetDevType>() { @Override public String renderItem(EthernetDevType item) { return item.displayName; } - }); + }, EthernetDevType.class); - cboMaxUsbSpeed = new ComboBox<>(new ComboBoxRenderer<UsbSpeed>() { + cboMaxUsbSpeed = new ComboBox<UsbSpeed>(new ComboBoxRenderer<UsbSpeed>() { @Override public String renderItem(UsbSpeed item) { return item.displayName; } - }); + }, UsbSpeed.class); pnlEditor = new JEditorPane("text/plain", null); pnlScrollPane = new JScrollPane(pnlEditor, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, |