cobbling a ComboBox



I have a JComboBox that looks like this:

http://www.geocities.com/tekmonk2005/pix/ComboBoxColors.jpg

I would like to use the color on the top title bar to use it as the
background of the selected item in the combobox, so it kind of looks like a
continuation of what was suggested in the title bar

But I don't know how to ask the UI Manager to give me the color of the top
title bar a JFrame uses. If you go:

UIManager.get("InternalFrame.borderColor")

you will get something like:

javax.swing.plaf.ColorUIResource[r=238,g=238,b=238]

Which is the grey color of the default Window background in the Metal L&F

Also I don't know how to only have the selection boldened (as in the window
bar), when the selection is made. If you go:

UIManager.put("ComboBox.font", new Font("Monospaced", Font.PLAIN +
Font.BOLD, 16));

The font stays bold all the time

I would like for it to be bold only when you select it

Is this possible?

thanx
lbrtchx

.



Relevant Pages

  • Re: Change bar colors
    ... That's why I'm going nuts. ... I did the work around of flag every task I which to assign the same bar ... PS The multiple selection works with text format with the task Names, ...
    (microsoft.public.project)
  • Re: Change bar colors
    ... be an issue with the Portuguese version. ... same bar ... PS The multiple selection works with text format with the task ...
    (microsoft.public.project)
  • RE: Display Status Bar Function Results in VBA
    ... selection. ... Is there a way to display the worksheet status bar values of ADD, MAX, ... So if I select or reference a few cells with values in them, ...
    (microsoft.public.excel.programming)
  • Re: Change bar colors
    ... When you are selecting multiple ... regular bar I do not get consistent ... selection. ... Try Format> Bar Styles to change a style, ...
    (microsoft.public.project)
  • Re: Updating StatusBar
    ... up to run code that shows expanded details of the selected item in some ... boxes but not in the status bar, however, should I change the selection ... status bar are updated. ...
    (comp.lang.smalltalk.dolphin)