classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: call addCustomEntriesToTable on theme in MetalLookAndF


From: Roman Kennke
Subject: [cp-patches] FYI: call addCustomEntriesToTable on theme in MetalLookAndFeel.getDefaults
Date: Wed, 20 Apr 2005 15:45:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

Hi,

As pointed out here:
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=11543

MetalLookAndFeel should call addCustomEntriesToTable on the theme. This is done in getDefaults, after all the init* methods have been called, so the MetalLookAndFeel defaults can be overridden by the theme. AFAICS and after what my mauve tests say, this is correct.

2005-04-20  Roman Kennke  <address@hidden>

       * javax/swing/plaf/metal/MetalLookAndFeel.java
       (getDefaults): Call addCustomEntriesToTable on the theme.


/Roman


Index: javax/swing/plaf/metal/MetalLookAndFeel.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v
retrieving revision 1.16
diff -u -r1.16 MetalLookAndFeel.java
--- javax/swing/plaf/metal/MetalLookAndFeel.java        18 Apr 2005 23:04:36 
-0000      1.16
+++ javax/swing/plaf/metal/MetalLookAndFeel.java        20 Apr 2005 13:41:21 
-0000
@@ -92,6 +92,9 @@
     if (LAF_defaults == null)
       LAF_defaults = super.getDefaults();
 
+    // add custom theme entries to the table
+    theme.addCustomEntriesToTable(LAF_defaults);
+    
     // Returns the default values for this look and feel. 
     return LAF_defaults;
   }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]