> HI folks,
> does anyone knows how to change a menuItem component.
> e.g. i would like to have a menu with bacground = black and foreground
> white....
> Some suggestion? Thanks a lot
> jacov
Hi Jakov!
All the menu-related Swing classes (JMenu, JMenuItem, JMenuBar)
indirectly extend from JComponent and Component.
So you can simply call setBackground(Color.black) and
setForeground(Color.white) on them.

Signature
Thomas<dot>Fritsch<squiggle>ops<dot>de
jacov - 27 Jul 2004 16:08 GMT
Oh yes it's the first thing i tried. But it doesn't work...
I don't know why...
Anyway thanks a lot
>> HI folks,
>> does anyone knows how to change a menuItem component.
[quoted text clipped - 8 lines]
> So you can simply call setBackground(Color.black) and
> setForeground(Color.white) on them.
ak - 27 Jul 2004 16:21 GMT
> Oh yes it's the first thing i tried. But it doesn't work...
> I don't know why...
did you tried setOpaque(true)?

Signature
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
jacov - 29 Jul 2004 15:44 GMT
The first suggestions was the right.
Now it works fine!!
Sorry
>>Oh yes it's the first thing i tried. But it doesn't work...
>>I don't know why...
>
> did you tried setOpaque(true)?