From 25cef97465f0bfa8959663754e9243006324c81c Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Wed, 01 May 2019 10:09:53 -0400
Subject: [PATCH] Nimbus L&F

---
 GrafreeD.java |   43 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/GrafreeD.java b/GrafreeD.java
index 44e3600..075e813 100644
--- a/GrafreeD.java
+++ b/GrafreeD.java
@@ -15,6 +15,8 @@
 //import com.jamonapi.*;
 public class GrafreeD extends Applet implements ActionListener
 {
+        static boolean NIMBUSLAF = false;
+        
     static int RENDERME = 0;
 
     static boolean epsequal = false;
@@ -801,19 +803,44 @@
 //        PlayAudio("/Users/nbriere/Downloads/Footsteps-6.wav", 4, 1);
         
         
-
-        try
+/**/
+        if (NIMBUSLAF)
         {
-            MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
-            MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme));
-            UIManager.setLookAndFeel(new MetalLookAndFeel());
-            //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
+                try
+                {
+                    Object o = UIManager.getInstalledLookAndFeels();
+                        
+                    javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new javax.swing.plaf.metal.DefaultMetalTheme());
+                    //MetalLookAndFeel.setCurrentTheme(new Theme(Constants.beigeTheme));
+                    UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel());
+                    
+                        UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
             //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel");
             //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
-        } catch (Exception e)
-        {
+                        //UIManager.put("nimbusBase", new Color(0,0,0));
+                }
+                catch (Exception e)
+                {
+                }
         }
+        else
+        {
+                try
+                {
+                    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+                    MetalLookAndFeel.setCurrentTheme(new Theme(Constants.yellowTheme));
+                    UIManager.setLookAndFeel(new MetalLookAndFeel());
+                    //UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
+                    //UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel");
+                    //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
+                } catch (Exception e)
+                {
+                }
+        }
+/**/
 
+//        javax.swing.ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
+        
         //Monitor mon=MonitorFactory.start("myFirstMonitor");
         standAlone = true;
         grafreeD = new GrafreeD();

--
Gitblit v1.6.2