From 207e18b409fa150e3ae9b0be16f860693dd2a2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Clermont=C3=A9?= Date: Fri, 26 Aug 2016 18:53:02 +0200 Subject: [PATCH] use default color in GUI --- src/org/dclermonte/siba/gui/SibaGUI.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/org/dclermonte/siba/gui/SibaGUI.java b/src/org/dclermonte/siba/gui/SibaGUI.java index b8aa8fb..f2a35cd 100644 --- a/src/org/dclermonte/siba/gui/SibaGUI.java +++ b/src/org/dclermonte/siba/gui/SibaGUI.java @@ -163,21 +163,17 @@ public final class SibaGUI .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); JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); - tabbedPane.setBackground(Color.GREEN); tabbedPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); this.frmSimpleBackup.getContentPane().add(tabbedPane, BorderLayout.CENTER); this.backupPanel = new BackupPanel(); - this.backupPanel.setBackground(new Color(0, 255, 0)); tabbedPane.addTab(BUNDLE.getString("BackupPanel.TitleBackupPanel.text"), new ImageIcon(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")), this.backupPanel, null); this.checkPanel = new CheckPanel(); this.checkPanel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); - this.checkPanel.setBackground(new Color(144, 238, 144)); tabbedPane.addTab(BUNDLE.getString("BackupPanel.TitleCheckPanel.text"), new ImageIcon(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")), this.checkPanel, null); @@ -194,14 +190,12 @@ public final class SibaGUI JMenu mnFile = new JMenu(BUNDLE.getString("SibaGUI.mnFile.text")); mnFile.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); - mnFile.setBackground(Color.GREEN); mnFile.setMnemonic('F'); mnFile.setForeground(Color.BLACK); menuBar.add(mnFile); JMenuItem mntmBackup = new JMenuItem(BUNDLE.getString("SibaGUI.mntmBackup.text")); mntmBackup.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); - mntmBackup.setBackground(Color.GREEN); mntmBackup.addActionListener(new ActionListener() { @Override @@ -218,7 +212,6 @@ public final class SibaGUI mnFile.add(mntmBackup); JMenuItem mntmCheck = new JMenuItem(BUNDLE.getString("SibaGUI.mntmCheck.text")); - mntmCheck.setBackground(Color.GREEN); mntmCheck.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mntmCheck.addActionListener(new ActionListener() { @@ -237,7 +230,6 @@ public final class SibaGUI JMenuItem mntmQuit = new JMenuItem(BUNDLE.getString("SibaGUI.mntmQuit.text")); mntmQuit.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); - mntmQuit.setBackground(Color.GREEN); mntmQuit.setMnemonic(KeyEvent.VK_Q); mntmQuit.addActionListener(new ActionListener() { @@ -253,18 +245,17 @@ public final class SibaGUI mnFile.add(mntmQuit); JMenu mnNewMenu = new JMenu(BUNDLE.getString("SibaGUI.mnNewMenu.text")); + mnNewMenu.setBackground(Color.GREEN); mnNewMenu.setMnemonic('H'); mnNewMenu.setLocation(new Point(500, 0)); mnNewMenu.setHorizontalTextPosition(SwingConstants.RIGHT); mnNewMenu.setHorizontalAlignment(SwingConstants.RIGHT); mnNewMenu.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mnNewMenu.setForeground(new Color(0, 0, 0)); - mnNewMenu.setBackground(Color.GREEN); mnNewMenu.setOpaque(true); menuBar.add(mnNewMenu); JMenuItem mntmMenuItemAbout = new JMenuItem(BUNDLE.getString("SibaGUI.mntmNewMenuItem_2.text")); - mntmMenuItemAbout.setBackground(Color.GREEN); mntmMenuItemAbout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mntmMenuItemAbout.addActionListener(new ActionListener() {