Problem with java.awt.List

A

AtmO

I'm trying to disable a List component, using its method setEnabled(false).
With this last I don't gain a complete effect: the List items are no more
selectables but their aspect stays the same, unaffected (their color should
change in opaque gray, that's the default disactivation color). The color
changes only when the frame containing the list, is iconized then recalled
or the list area is covert behind a system window or other frame, then
brought again visible, or using method List.setVisible(false) first,
List.Visible(true) later.
NB: I'm using the 1.4.2 version, and methods like List.repaint() List.paint(g)
do not seem to work.

Any hint ?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top