diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java index e62c4c1c..5e736426 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java @@ -18,7 +18,6 @@ import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JDialog; import javax.swing.JFrame; -import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSpinner; @@ -34,6 +33,7 @@ import org.openslx.bwlp.thrift.iface.ImageVersionDetails; import org.openslx.dozmod.gui.control.ComboBox; import org.openslx.dozmod.gui.control.ComboBox.ComboBoxRenderer; import org.openslx.dozmod.gui.control.PersonLabel; +import org.openslx.dozmod.gui.control.QLabel; import org.openslx.dozmod.gui.helper.GridManager; import org.openslx.dozmod.util.DateLabelFormatter; import org.openslx.dozmod.util.FormatHelper; @@ -44,15 +44,15 @@ public abstract class LectureDetailsWindowLayout extends JDialog { protected final JTextArea txtTitle; protected final JTextArea txtDescription; - protected final JLabel txtImageName; + protected final QLabel txtImageName; protected final JButton btnLinkImage; protected final PersonLabel lblOwner; protected final JButton btnChangeOwner; - protected final JLabel lblCreateTime; + protected final QLabel lblCreateTime; protected final PersonLabel lblUpdater; - protected final JLabel lblUpdateTime; - protected final JLabel lblStartTime; - protected final JLabel lblEndTime; + protected final QLabel lblUpdateTime; + protected final QLabel lblStartTime; + protected final QLabel lblEndTime; protected final JCheckBox btnAutoUpdate; protected final JComboBox<ImageVersionDetails> cboVersions; protected final JCheckBox btnIsExam; @@ -60,7 +60,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog { protected final JCheckBox btnIsActive; protected final JTextField txtId; - protected final JLabel lblUseCount; + protected final QLabel lblUseCount; protected final JButton btnPermissions; @@ -107,14 +107,14 @@ public abstract class LectureDetailsWindowLayout extends JDialog { txtDescription = new JTextArea(); txtDescription.setLineWrap(true); txtDescription.setPreferredSize(new Dimension(450, 100)); - grid.add(new JLabel("Beschreibung")).anchor(GridBagConstraints.FIRST_LINE_START); + grid.add(new QLabel("Beschreibung")).anchor(GridBagConstraints.FIRST_LINE_START); grid.add(new JScrollPane(txtDescription), 2).expand(true, true).fill(true, true); grid.nextRow(); // linked image // name - txtImageName = new JLabel(); - grid.add(new JLabel("Verknüpftes Image")); + txtImageName = new QLabel(); + grid.add(new QLabel("Verknüpftes Image")); grid.add(txtImageName).expand(true, false); // link button for image btnLinkImage = new JButton("Ändern"); @@ -144,7 +144,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog { versionPanel.add(btnDownloadImage, BorderLayout.EAST); versionPanel.add(cboVersions, BorderLayout.CENTER); versionPanel.add(btnAutoUpdate, BorderLayout.SOUTH); - grid.add(new JLabel("Image-Version")); + grid.add(new QLabel("Image-Version")); grid.add(versionPanel, 2); grid.nextRow(); @@ -155,8 +155,8 @@ public abstract class LectureDetailsWindowLayout extends JDialog { startTime = makeTimeSpinner(23, 59); startTimePanel.add(startDate, BorderLayout.WEST); startTimePanel.add(startTime, BorderLayout.CENTER); - lblStartTime = new JLabel(); - grid.add(new JLabel("Startdatum")); + lblStartTime = new QLabel(); + grid.add(new QLabel("Startdatum")); grid.add(startTimePanel, 2); grid.nextRow(); @@ -167,34 +167,34 @@ public abstract class LectureDetailsWindowLayout extends JDialog { endTime = makeTimeSpinner(00, 59); endTimePanel.add(endDate, BorderLayout.WEST); endTimePanel.add(endTime, BorderLayout.CENTER); - lblEndTime = new JLabel(); - grid.add(new JLabel("Enddatum")); + lblEndTime = new QLabel(); + grid.add(new QLabel("Enddatum")); grid.add(endTimePanel, 2); grid.nextRow(); // owner lblOwner = new PersonLabel(); btnChangeOwner = new JButton("Ändern"); - grid.add(new JLabel("Besitzer")); + grid.add(new QLabel("Besitzer")); grid.add(lblOwner).expand(true, false); grid.add(btnChangeOwner); grid.nextRow(); // creation time - lblCreateTime = new JLabel(); - grid.add(new JLabel("Erstellt")); + lblCreateTime = new QLabel(); + grid.add(new QLabel("Erstellt")); grid.add(lblCreateTime, 2); grid.nextRow(); // last updater lblUpdater = new PersonLabel(); - grid.add(new JLabel("Geändert durch")); + grid.add(new QLabel("Geändert durch")); grid.add(lblUpdater, 2); grid.nextRow(); // last updated - lblUpdateTime = new JLabel(); - grid.add(new JLabel("Änderungszeitpunkt")); + lblUpdateTime = new QLabel(); + grid.add(new QLabel("Änderungszeitpunkt")); grid.add(lblUpdateTime, 2); grid.nextRow(); @@ -217,13 +217,13 @@ public abstract class LectureDetailsWindowLayout extends JDialog { // id txtId = new JTextField(); txtId.setEditable(false); - grid.add(new JLabel("ID")); + grid.add(new QLabel("ID")); grid.add(txtId, 2).expand(true, false).fill(true, false); grid.nextRow(); // use count - lblUseCount = new JLabel(); - grid.add(new JLabel("Aufrufe")); + lblUseCount = new QLabel(); + grid.add(new QLabel("Aufrufe")); grid.add(lblUseCount, 2); grid.nextRow(); |