From 9fa0bf7bd28a817fe039ebae96d08547bcf235e0 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 29 May 2016 09:53:56 +0200 Subject: [PATCH] Swapped main menu position of Feedback and Preferences (so Preferences is always available if you switch to a too big font size). --- .../src/main/java/mage/client/MageFrame.form | 12 +++---- .../src/main/java/mage/client/MageFrame.java | 36 ++++++++++--------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.form b/Mage.Client/src/main/java/mage/client/MageFrame.form index 07706881ec..f0741e2082 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.form +++ b/Mage.Client/src/main/java/mage/client/MageFrame.form @@ -76,15 +76,15 @@ - + - + - + @@ -141,15 +141,15 @@ - + - + - + diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index 1abf229af6..c36056dace 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -823,7 +823,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { desktopPane = new MageJDesktop(); mageToolbar = new javax.swing.JToolBar(); - btnSendFeedback = new javax.swing.JButton(); + btnPreferences = new javax.swing.JButton(); jSeparator4 = new javax.swing.JToolBar.Separator(); btnConnect = new javax.swing.JButton(); jSeparator3 = new javax.swing.JToolBar.Separator(); @@ -833,7 +833,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { jSeparator2 = new javax.swing.JToolBar.Separator(); btnCollectionViewer = new javax.swing.JButton(); jSeparator5 = new javax.swing.JToolBar.Separator(); - btnPreferences = new javax.swing.JButton(); + btnSendFeedback = new javax.swing.JButton(); jSeparator6 = new javax.swing.JToolBar.Separator(); btnAbout = new javax.swing.JButton(); jSeparator7 = new javax.swing.JToolBar.Separator(); @@ -854,16 +854,16 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { mageToolbar.setMinimumSize(new java.awt.Dimension(566, 60)); mageToolbar.setPreferredSize(new java.awt.Dimension(614, 60)); - btnSendFeedback.setText("Feedback"); - btnSendFeedback.setFocusable(false); - btnSendFeedback.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); - btnSendFeedback.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); - btnSendFeedback.addActionListener(new java.awt.event.ActionListener() { + btnPreferences.setText("Preferences"); + btnPreferences.setFocusable(false); + btnPreferences.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); + btnPreferences.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); + btnPreferences.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { - btnSendFeedbackActionPerformed(evt); + btnPreferencesActionPerformed(evt); } }); - mageToolbar.add(btnSendFeedback); + mageToolbar.add(btnPreferences); mageToolbar.add(jSeparator4); btnConnect.setText("Connect"); @@ -914,16 +914,16 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { mageToolbar.add(btnCollectionViewer); mageToolbar.add(jSeparator5); - btnPreferences.setText("Preferences"); - btnPreferences.setFocusable(false); - btnPreferences.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); - btnPreferences.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); - btnPreferences.addActionListener(new java.awt.event.ActionListener() { + btnSendFeedback.setText("Feedback"); + btnSendFeedback.setFocusable(false); + btnSendFeedback.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); + btnSendFeedback.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); + btnSendFeedback.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { - btnPreferencesActionPerformed(evt); + btnSendFeedbackActionPerformed(evt); } }); - mageToolbar.add(btnPreferences); + mageToolbar.add(btnSendFeedback); mageToolbar.add(jSeparator6); btnAbout.setText("About"); @@ -1069,9 +1069,11 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { if (setActive) { setActive(tablesPane); } else // if other panel was already shown, mamke sure it's topmost again - if (topPanebefore != null) { + { + if (topPanebefore != null) { setActive(topPanebefore); } + } } public void hideGames() {