[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Add Menu* fonts to javax.swing.plaf.metal.MetalLookAnd
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Add Menu* fonts to javax.swing.plaf.metal.MetalLookAndFeel |
Date: |
Mon, 18 Apr 2005 11:56:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 |
The attached patch adds default fonts for Menu/Bar/Entry in the Metal L&F.
2005-04-18 Roman Kennke <address@hidden>
* javax/swing/plaf/metal/MetalLookAndFeel.java
(initComponentDefaults): Added defaults for Menu, MenuBar
MenuEntry fonts.
/Roman
Index: javax/swing/plaf/metal/MetalLookAndFeel.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v
retrieving revision 1.14
diff -u -r1.14 MetalLookAndFeel.java
--- javax/swing/plaf/metal/MetalLookAndFeel.java 15 Apr 2005 22:09:43
-0000 1.14
+++ javax/swing/plaf/metal/MetalLookAndFeel.java 18 Apr 2005 09:53:22
-0000
@@ -472,8 +472,11 @@
"Label.background", new ColorUIResource(getControl()),
"Label.font", getControlTextFont(),
"Menu.background", new ColorUIResource(getControl()),
+ "Menu.font", getControlTextFont(),
"MenuBar.background", new ColorUIResource(getControl()),
+ "MenuBar.font", getControlTextFont(),
"MenuItem.background", new ColorUIResource(getControl()),
+ "MenuItem.font", getControlTextFont(),
"ScrollBar.background", new ColorUIResource(getControl())
};
defaults.putDefaults(myDefaults);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Add Menu* fonts to javax.swing.plaf.metal.MetalLookAndFeel,
Roman Kennke <=