diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index 0117e7e325..520014b62d 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -202,7 +202,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { config.setAccessPreference(FsAccessOption.STORE, true); try { UIManager.put("desktop", new Color(0, 0, 0, 0)); - UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); + UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); // stop JSplitPane from eating F6 and F8 or any other function keys { diff --git a/Mage.Client/src/main/java/mage/client/components/MageJDesktop.java b/Mage.Client/src/main/java/mage/client/components/MageJDesktop.java index ca74f6196f..5d6ee1df71 100644 --- a/Mage.Client/src/main/java/mage/client/components/MageJDesktop.java +++ b/Mage.Client/src/main/java/mage/client/components/MageJDesktop.java @@ -1,10 +1,5 @@ package mage.client.components; -//import com.sun.java.swing.Painter; - -import java.awt.Color; -import java.awt.Graphics2D; - import javax.swing.JDesktopPane; import javax.swing.UIDefaults; import javax.swing.UIManager; @@ -22,7 +17,7 @@ public class MageJDesktop extends JDesktopPane { public void updateUI() { if ("Nimbus".equals(UIManager.getLookAndFeel().getName())) { UIDefaults map = new UIDefaults(); - Painter painter = (g, c, w, h) -> { + Painter painter = (g, c, w, h) -> { g.setColor( UIManager.getDefaults().getColor("desktop") ); g.fillRect(0,0,w,h); }; diff --git a/Mage.Client/src/main/java/mage/client/components/ability/AbilityPicker.java b/Mage.Client/src/main/java/mage/client/components/ability/AbilityPicker.java index 7dc263ddc4..df03dc72fc 100644 --- a/Mage.Client/src/main/java/mage/client/components/ability/AbilityPicker.java +++ b/Mage.Client/src/main/java/mage/client/components/ability/AbilityPicker.java @@ -383,7 +383,7 @@ public class AbilityPicker extends JXPanel implements MouseWheelListener { public static void main(String[] argv) { try { - UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); + UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); } catch (Exception ex) { } diff --git a/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java b/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java index df46fb279e..4ed3d543a1 100644 --- a/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java +++ b/Mage.Server.Console/src/main/java/mage/server/console/ConsoleFrame.java @@ -60,7 +60,7 @@ public class ConsoleFrame extends javax.swing.JFrame implements MageClient { initComponents(); try { - UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); + UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel"); session = new SessionImpl(this); connectDialog = new ConnectDialog(); } catch (Exception ex) {