From 5a3c7f863c1d750df8f14c75efbc7084323e054a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Clermont=C3=A9?= Date: Mon, 6 Jun 2016 23:28:54 +0200 Subject: [PATCH] Renamed SibaLogo + added on about --- README.md | 2 +- src/org/dclermonte/siba/gui/AboutDialog.java | 10 ++++++++++ .../dclermonte/siba/gui/CheckDirectorySelector.java | 1 - src/org/dclermonte/siba/gui/SibaGUI.java | 2 +- .../siba/gui/{Cat-Box-32x32.png => SibaLogo.png} | Bin 5 files changed, 12 insertions(+), 3 deletions(-) rename src/org/dclermonte/siba/gui/{Cat-Box-32x32.png => SibaLogo.png} (100%) diff --git a/README.md b/README.md index be970a3..af0a452 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ For unit tests, install the TestNG: * Eclipse menu > Help > Eclipse Marketplace > Find "TestNG" > TestNG for Eclipse: Install button # LOGO -Cat-Box-32x32.png +SibaLogo comes from Cat-Box-32x32.png http://www.iconspedia.com/icon/cat-box-icon-47051.html Author: Iconka, http://iconka.com/ diff --git a/src/org/dclermonte/siba/gui/AboutDialog.java b/src/org/dclermonte/siba/gui/AboutDialog.java index 8740160..d74f855 100644 --- a/src/org/dclermonte/siba/gui/AboutDialog.java +++ b/src/org/dclermonte/siba/gui/AboutDialog.java @@ -24,11 +24,14 @@ import java.awt.Color; import java.awt.Cursor; import java.awt.FlowLayout; import java.awt.Font; +import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JDialog; +import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextPane; @@ -50,6 +53,8 @@ public class AboutDialog extends JDialog */ public AboutDialog() { + setIconImage(Toolkit.getDefaultToolkit() + .getImage(AboutDialog.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png"))); setBackground(Color.GREEN); getContentPane().setBackground(Color.GREEN); setBounds(100, 100, 450, 300); @@ -80,6 +85,11 @@ public class AboutDialog extends JDialog JPanel panel = new JPanel(); panel.setBackground(Color.GREEN); getContentPane().add(panel, BorderLayout.CENTER); + { + JLabel lblNewLabel = new JLabel(""); + lblNewLabel.setIcon(new ImageIcon(AboutDialog.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png"))); + panel.add(lblNewLabel); + } JTextPane txtpnSimpleBackupDveloppeur = new JTextPane(); txtpnSimpleBackupDveloppeur.setBackground(Color.GREEN); diff --git a/src/org/dclermonte/siba/gui/CheckDirectorySelector.java b/src/org/dclermonte/siba/gui/CheckDirectorySelector.java index 864e877..b758ede 100644 --- a/src/org/dclermonte/siba/gui/CheckDirectorySelector.java +++ b/src/org/dclermonte/siba/gui/CheckDirectorySelector.java @@ -32,7 +32,6 @@ public class CheckDirectorySelector extends JFileChooser { super(); setBackground(new Color(152, 251, 152)); - // File file; if ((targetFile == null) || (StringUtils.isBlank(targetFile.getAbsolutePath()))) diff --git a/src/org/dclermonte/siba/gui/SibaGUI.java b/src/org/dclermonte/siba/gui/SibaGUI.java index a40e05f..48092be 100644 --- a/src/org/dclermonte/siba/gui/SibaGUI.java +++ b/src/org/dclermonte/siba/gui/SibaGUI.java @@ -159,7 +159,7 @@ public class SibaGUI { this.frmSimpleBackup = new JFrame(); this.frmSimpleBackup.setIconImage(Toolkit.getDefaultToolkit() - .getImage(SibaGUI.class.getResource("/org/dclermonte/siba/gui/Cat-Box-32x32.png"))); + .getImage(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png"))); this.frmSimpleBackup.getContentPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); this.frmSimpleBackup.setMinimumSize(new Dimension(600, 400)); this.frmSimpleBackup.getContentPane().setBackground(Color.GREEN); diff --git a/src/org/dclermonte/siba/gui/Cat-Box-32x32.png b/src/org/dclermonte/siba/gui/SibaLogo.png similarity index 100% rename from src/org/dclermonte/siba/gui/Cat-Box-32x32.png rename to src/org/dclermonte/siba/gui/SibaLogo.png