Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3705
| From | "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: cobbling a ComboBox |
| Message-ID | <1214321081.136206@nntp.acecape.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <g3pac7$aki$1@registered.motzarella.org> |
| Date | 2011-04-27 15:46 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
Daniele Futtorovic wrote:
> Try UIManager.getColor(Object).
Actually I had done both.
If you go:
JFrame JFrm = new JFrame(" Seting Parsing Rules for: ");
Clr = UIManager.getColor(JFrm);
System.out.println("// __ UIManager.getColor(JFrm): |" + Clr + "|");
you will get:
// __ UIManager.getColor(JFrm): |null|
> You might try to dump all the UIManager keys
(UIManager.getDefaults().keySet()) and look for the appropriate key.
That I did also via:
String aKey;
Hashtable HTUIDef = UIManager.getDefaults();
Enumeration HTKeys = HTUIDef.keys();
while(HTKeys.hasMoreElements()){
Object ObjKey = HTKeys.nextElement();
if(ObjKey instanceof String){
. . .
}
}
But I don't see which of these is the one I need
sh-3.1# cat t.txt | grep Color
// __ |TabbedPane.contentAreaColor|
// __ |List.dropLineColor|
// __ |InternalFrame.borderColor|
// __ |ToolBar.borderColor|
// __ |Slider.tickColor|
// __ |Tree.dropLineColor|
// __ |Table.dropLineColor|
// __ |ColorChooser.swatchesRecentSwatchSize|
// __ |ColorChooser.swatchesSwatchSize|
// __ |SplitPane.dividerFocusColor|
// __ |ColorChooser.foreground|
// __ |ColorChooser.swatchesDefaultRecentColor|
// __ |Table.gridColor|
// __ |SplitPaneDivider.draggingColor|
// __ |TabbedPane.borderHightlightColor|
// __ |Tree.selectionBorderColor|
// __ |MenuBar.borderColor|
// __ |ColorChooser.background|
// __ |Table.sortIconColor|
// __ |TitledBorder.titleColor|
// __ |Table.dropLineShortColor|
// __ |ColorChooserUI|
// __ |Slider.altTrackColor|
sh-3.1# cat t.txt | grep color
// __ |RootPane.colorChooserDialogBorder|
~
> Chances are such nuanced behaviour as you want may not be available.
~
They are nuanced behaviours but I am trying to be a little more intuitive
to the user (in my understanding) and make the best use of the window's
real estate
~
Thank you Daniele.
Daniele for president!!! ;-) (Well, I could tell you may not be that bored
to become a politician)
lbrtchx
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Albretch Mueller" <albretch.mueller@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: cobbling a ComboBox "Daniele Futtorovic" <daniele.futtorovic@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
csiph-web