JComboBox item does not show in JTattoo lookAndFeel

84 views Asked by At

I use JTattoo LookAndFeel for my swing application. JComboBoxes in my app do not paint correctly. They do not show the selected item text. It just shows an arrow at the middle of JComboBox. When I click on combo, it shows the dropdown list, but it does not show the selected item. How can I fix that?

EDIT: It works in other lookAndFeels. My GUI objects are constructed and manipulated in the event dispatch thread. but the comboboxes are corrupted.

enter image description here

1

There are 1 answers

0
Dariush Jafari On BEST ANSWER

I realized that I had changed the lookAndFeel after mainframe.setVisible(). I should had changed id before mainFrame.setVisible() to take the best effect.