Re: cobbling a ComboBox



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

.