use default color in GUI

This commit is contained in:
Didier Clermonté 2016-08-26 18:53:02 +02:00
parent 63a6688fc8
commit 207e18b409

View File

@ -163,21 +163,17 @@ public final class SibaGUI
.getImage(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png"))); .getImage(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")));
this.frmSimpleBackup.getContentPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); this.frmSimpleBackup.getContentPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
this.frmSimpleBackup.setMinimumSize(new Dimension(600, 400)); this.frmSimpleBackup.setMinimumSize(new Dimension(600, 400));
this.frmSimpleBackup.getContentPane().setBackground(Color.GREEN);
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.setBackground(Color.GREEN);
tabbedPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); tabbedPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
this.frmSimpleBackup.getContentPane().add(tabbedPane, BorderLayout.CENTER); this.frmSimpleBackup.getContentPane().add(tabbedPane, BorderLayout.CENTER);
this.backupPanel = new BackupPanel(); this.backupPanel = new BackupPanel();
this.backupPanel.setBackground(new Color(0, 255, 0));
tabbedPane.addTab(BUNDLE.getString("BackupPanel.TitleBackupPanel.text"), tabbedPane.addTab(BUNDLE.getString("BackupPanel.TitleBackupPanel.text"),
new ImageIcon(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")), this.backupPanel, new ImageIcon(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")), this.backupPanel,
null); null);
this.checkPanel = new CheckPanel(); this.checkPanel = new CheckPanel();
this.checkPanel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); this.checkPanel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
this.checkPanel.setBackground(new Color(144, 238, 144));
tabbedPane.addTab(BUNDLE.getString("BackupPanel.TitleCheckPanel.text"), tabbedPane.addTab(BUNDLE.getString("BackupPanel.TitleCheckPanel.text"),
new ImageIcon(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")), this.checkPanel, new ImageIcon(SibaGUI.class.getResource("/org/dclermonte/siba/gui/SibaLogo.png")), this.checkPanel,
null); null);
@ -194,14 +190,12 @@ public final class SibaGUI
JMenu mnFile = new JMenu(BUNDLE.getString("SibaGUI.mnFile.text")); JMenu mnFile = new JMenu(BUNDLE.getString("SibaGUI.mnFile.text"));
mnFile.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mnFile.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
mnFile.setBackground(Color.GREEN);
mnFile.setMnemonic('F'); mnFile.setMnemonic('F');
mnFile.setForeground(Color.BLACK); mnFile.setForeground(Color.BLACK);
menuBar.add(mnFile); menuBar.add(mnFile);
JMenuItem mntmBackup = new JMenuItem(BUNDLE.getString("SibaGUI.mntmBackup.text")); JMenuItem mntmBackup = new JMenuItem(BUNDLE.getString("SibaGUI.mntmBackup.text"));
mntmBackup.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mntmBackup.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
mntmBackup.setBackground(Color.GREEN);
mntmBackup.addActionListener(new ActionListener() mntmBackup.addActionListener(new ActionListener()
{ {
@Override @Override
@ -218,7 +212,6 @@ public final class SibaGUI
mnFile.add(mntmBackup); mnFile.add(mntmBackup);
JMenuItem mntmCheck = new JMenuItem(BUNDLE.getString("SibaGUI.mntmCheck.text")); JMenuItem mntmCheck = new JMenuItem(BUNDLE.getString("SibaGUI.mntmCheck.text"));
mntmCheck.setBackground(Color.GREEN);
mntmCheck.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mntmCheck.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
mntmCheck.addActionListener(new ActionListener() mntmCheck.addActionListener(new ActionListener()
{ {
@ -237,7 +230,6 @@ public final class SibaGUI
JMenuItem mntmQuit = new JMenuItem(BUNDLE.getString("SibaGUI.mntmQuit.text")); JMenuItem mntmQuit = new JMenuItem(BUNDLE.getString("SibaGUI.mntmQuit.text"));
mntmQuit.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mntmQuit.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
mntmQuit.setBackground(Color.GREEN);
mntmQuit.setMnemonic(KeyEvent.VK_Q); mntmQuit.setMnemonic(KeyEvent.VK_Q);
mntmQuit.addActionListener(new ActionListener() mntmQuit.addActionListener(new ActionListener()
{ {
@ -253,18 +245,17 @@ public final class SibaGUI
mnFile.add(mntmQuit); mnFile.add(mntmQuit);
JMenu mnNewMenu = new JMenu(BUNDLE.getString("SibaGUI.mnNewMenu.text")); JMenu mnNewMenu = new JMenu(BUNDLE.getString("SibaGUI.mnNewMenu.text"));
mnNewMenu.setBackground(Color.GREEN);
mnNewMenu.setMnemonic('H'); mnNewMenu.setMnemonic('H');
mnNewMenu.setLocation(new Point(500, 0)); mnNewMenu.setLocation(new Point(500, 0));
mnNewMenu.setHorizontalTextPosition(SwingConstants.RIGHT); mnNewMenu.setHorizontalTextPosition(SwingConstants.RIGHT);
mnNewMenu.setHorizontalAlignment(SwingConstants.RIGHT); mnNewMenu.setHorizontalAlignment(SwingConstants.RIGHT);
mnNewMenu.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mnNewMenu.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
mnNewMenu.setForeground(new Color(0, 0, 0)); mnNewMenu.setForeground(new Color(0, 0, 0));
mnNewMenu.setBackground(Color.GREEN);
mnNewMenu.setOpaque(true); mnNewMenu.setOpaque(true);
menuBar.add(mnNewMenu); menuBar.add(mnNewMenu);
JMenuItem mntmMenuItemAbout = new JMenuItem(BUNDLE.getString("SibaGUI.mntmNewMenuItem_2.text")); JMenuItem mntmMenuItemAbout = new JMenuItem(BUNDLE.getString("SibaGUI.mntmNewMenuItem_2.text"));
mntmMenuItemAbout.setBackground(Color.GREEN);
mntmMenuItemAbout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); mntmMenuItemAbout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
mntmMenuItemAbout.addActionListener(new ActionListener() mntmMenuItemAbout.addActionListener(new ActionListener()
{ {