diff options
author | Jonathan Bauer | 2015-08-26 16:22:58 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-08-26 16:22:58 +0200 |
commit | 4e4f34b85560602e0fcfe1c56e7e9fdcfd55dd4a (patch) | |
tree | 0c6b66c2a713336e0f21bb1c68773632640c7807 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java | |
parent | [client] switch image <-> lectures buttons in *ListWindows (diff) | |
download | tutor-module-4e4f34b85560602e0fcfe1c56e7e9fdcfd55dd4a.tar.gz tutor-module-4e4f34b85560602e0fcfe1c56e7e9fdcfd55dd4a.tar.xz tutor-module-4e4f34b85560602e0fcfe1c56e7e9fdcfd55dd4a.zip |
[client] *ListWindow cosmetics
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java index 56b90542..2993b8e9 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java @@ -3,6 +3,7 @@ package org.openslx.dozmod.gui.window.layout; import java.awt.Font; import java.awt.GridBagLayout; +import javax.swing.BorderFactory; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JButton; @@ -24,7 +25,7 @@ public abstract class LectureListWindowLayout extends CompositePage { private static final String editButtonLabel = "Bearbeiten"; private static final String deleteButtonLabel = "Löschen"; private static final String switchViewButtonLabel = "Zu 'Images' wechseln"; - private static final String tableGroupLabel = "Suchen"; + private static final String filterPanelLabel = "Suchen"; private static final String infoTextString = "Hier können Sie Veranstaltungen anlegen, bearbeiten und löschen."; protected final static String[] showOwnedLabel = {"Alle anzeigen", "Nur eigene Anzeigen", "Nur editierbare anzeigen", "Bald auslaufend"}; @@ -53,6 +54,7 @@ public abstract class LectureListWindowLayout extends CompositePage { public LectureListWindowLayout() { super(new GridBagLayout()); + setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); // -- info group with title and text -- JPanel infoComposite = new JPanel(); @@ -68,11 +70,11 @@ public abstract class LectureListWindowLayout extends CompositePage { // -- group for the table -- JPanel tablePanel = new JPanel(); - tablePanel.setBorder(new TitledBorder(tableGroupLabel)); tablePanel.setLayout(new GridBagLayout()); tablePanel.setPreferredSize(tablePanel.getMinimumSize()); // filterPanel with filter text field and filter combo JPanel filterPanel = new JPanel(); + filterPanel.setBorder(new TitledBorder(filterPanelLabel)); filterPanel.setLayout(new BoxLayout(filterPanel, BoxLayout.LINE_AXIS)); searchTextField = new JTextField(); filterCbo = new JComboBox<String>(); @@ -89,6 +91,7 @@ public abstract class LectureListWindowLayout extends CompositePage { // create, modify and delete buttons JPanel buttonComposite = new JPanel(); buttonComposite.setLayout(new BoxLayout(buttonComposite, BoxLayout.LINE_AXIS)); + buttonComposite.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0)); tablePanel.add(buttonComposite, GridPos.get(0, 2, true, false)); newButton = new JButton(newButtonLabel); |