Hi all,
 
I am working on some swing application, there are 2 small things that bother me and I don't know how to overcome them.
 
1) For some reason if I am using the default L&F (Metal) there are some cases (didn't find a consistent pattern) that the fonts in some components (mainly buttons) are Font.PLAIN, but when my mouse cursor hovers on them for the first time the font becomes BOLD and stays that way till I close the application, in windows L&F it doesn't happen, did anyone encounter such a problem? Note that I did not set any font in the application.
 
2) When I open a JComboBox's items list (click on the small gray button it has) I see the first 8 items, all the rest are visible once I scroll down the list. If I set programmatically a selected index in a JComboBox, and that item is not in the first 8 items, when I click to see the items list this item is not visible (I need to scroll to see it). in JList there is a method called "ensureIndexIsVisible(int index)" for that task. How can I do it with a JComboBox?
 
I am using jdk 1.3.1_01 on win2k
 
I believe that these are questions that only people who encountered themselves know the answers...  :o)
 
Thanks in advance and sorry for the lengthy Qs.
David Treves.
 
 
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to