diff options
author | Jonathan Bauer | 2016-05-10 17:27:19 +0200 |
---|---|---|
committer | Jonathan Bauer | 2016-05-10 17:27:19 +0200 |
commit | 924070252f9993b7f7d0a3f2cfd433387d097aa4 (patch) | |
tree | 571df6a6906dd4251c5b297d027a7506e35c1899 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java | |
parent | Revert "[client] Wizard: change 'Schließen' to 'Minimieren'" (diff) | |
download | tutor-module-924070252f9993b7f7d0a3f2cfd433387d097aa4.tar.gz tutor-module-924070252f9993b7f7d0a3f2cfd433387d097aa4.tar.xz tutor-module-924070252f9993b7f7d0a3f2cfd433387d097aa4.zip |
[client] icon revamp
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java index 26f53220..256d763f 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImagePublishedWindowLayout.java @@ -22,12 +22,13 @@ public class ImagePublishedWindowLayout extends JDialog { protected final ImagePublishedTable imagePublishedTable; + private static final int ICON_SIZE_Y = 24; protected final JButton btnDownload; protected final JButton btnSatDownload; protected final JButton btnClose; protected final JTextField txtSearch; - private static String title = "Öffentliche Images"; + private static String title = "Öffentliche VMs"; protected ImagePublishedWindowLayout(Window modalParent) { super(modalParent, title, modalParent != null ? ModalityType.APPLICATION_MODAL @@ -55,16 +56,18 @@ public class ImagePublishedWindowLayout extends JDialog { // --------------- end user table ------------------------------------ // --------------- button panel -------------------------------------- - JPanel buttonPane = new JPanel(); - buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.LINE_AXIS)); - buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); - btnDownload = new JButton("Herunterladen"); - buttonPane.add(btnDownload); - btnSatDownload = new JButton("Auf Satellit herunterladen"); - buttonPane.add(btnSatDownload); - buttonPane.add(Box.createHorizontalGlue()); + JPanel buttonPanel = new JPanel(); + buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS)); + buttonPanel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); + btnDownload = new JButton("Herunterladen", Gui.getScaledIconResource("/img/download-icon.png", + "Herunterladen", ICON_SIZE_Y, buttonPanel)); + buttonPanel.add(btnDownload); + btnSatDownload = new JButton("Auf Satellit herunterladen", Gui.getScaledIconResource("/img/download-to-sat-icon.png", + "Auf Satellit herunterladen", ICON_SIZE_Y, buttonPanel)); + buttonPanel.add(btnSatDownload); + buttonPanel.add(Box.createHorizontalGlue()); btnClose = new JButton("Schließen"); - buttonPane.add(btnClose); + buttonPanel.add(btnClose); // --------------- end button panel ---------------------------------- // pack it all @@ -72,7 +75,7 @@ public class ImagePublishedWindowLayout extends JDialog { // grid.nextRow(); // TODO working search box grid.add(listPane).fill(true, true).expand(true, true); grid.nextRow(); - grid.add(buttonPane).fill(true, false).expand(true, false); + grid.add(buttonPanel).fill(true, false).expand(true, false); grid.nextRow(); grid.finish(false); |