From b0300056e7e73d2bea9d330369fcbed895ab95cc Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 11 Sep 2015 14:39:16 +0200 Subject: [client] LectureDetailsWindowLayout: error label --- .../dozmod/gui/window/layout/LectureDetailsWindowLayout.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dozentenmodul/src/main/java') 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 820cfcac..13eb79b5 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 @@ -16,6 +16,7 @@ import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JDialog; import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSpinner; @@ -64,6 +65,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog { protected final JButton btnPermissions; + protected QLabel lblError; protected final JButton btnSaveChanges; protected final JButton btnClose; protected final JButton btnDownloadImage; @@ -242,6 +244,10 @@ public abstract class LectureDetailsWindowLayout extends JDialog { buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS)); btnClose = new JButton("Schließen"); btnSaveChanges = new JButton("Speichern"); + lblError = new QLabel(""); + lblError.setForeground(Color.RED); + buttonPanel.add(Box.createGlue()); + buttonPanel.add(lblError); buttonPanel.add(Box.createGlue()); buttonPanel.add(btnClose); buttonPanel.add(btnSaveChanges); -- cgit v1.2.3-55-g7522