bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/22814] Swing; missing L&F config methods.


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22814] Swing; missing L&F config methods.
Date: 16 Oct 2005 01:27:19 -0000

Each L&F based on the Metal L&F can provide swing-wide color and font settings,
which are then used by the various components by calling the static methods on
MetalLookAndFeel, like getControl().
These methods are missing currently.

The initialisation of which colors/fonts these methods return is done in
MetalTheme, specifically the addCustomEntriesToTable(UIDefaults table) method
which means that the UIDefaults object should be used to provide the data to
return in the above methods.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-12-21 
21:28 -------
Just to make sure: Does all the getSomething() methods in MetalLookAndFeel
forward to MetalTheme.getSomething() ?
Sounds easy to implement.


------- Comment #2 from from-classpath at savannah dot gnu dot org  2004-12-21 
22:01 -------
They do; but note that the methods on MetalTheme are not static, and that means
you have to resolve the current theme set by the user.  This can be an instance
that extends the MetalTheme, like the DefaultMetalTheme, or MyTheme.


------- Comment #3 from from-classpath at savannah dot gnu dot org  2004-12-22 
16:58 -------
I just commited a patch to add MetalTheme and DefaultMetalTheme. I only
implemented the getters for the ColorUIResource properties. I hope I got the
mapping in MetalTheme correct. I wrote little mauve testcases to get the basics
correct. The getters for the FontUIResource properties will be more
non-trivial. I will leave this bug open as long as they are not implemented.


------- Comment #4 from from-classpath at savannah dot gnu dot org  2004-12-22 
20:27 -------
Cool; thanx.
Two minor points:
getControlTextColor should do a  getControlInfo
getHighlightedTextColor should do a getControlTextColor


------- Comment #5 from from-classpath at savannah dot gnu dot org  2004-12-30 
16:03 -------
All missing methods now added to CVS. They will be in GNU classpath 0.13.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22814





reply via email to

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