Combo box items are hidden behind other controls.

253 views Asked by At

error screenshot:

https://i.stack.imgur.com/3keuR.png

The JComboBox items are obscured by RSyntaxTextArea in programs created with Java Swing.

This symptom does not occur when running the same program on a mac. It only occurs in the windows environment.

Could someone give me some hint about the solution?

1

There are 1 answers

1
camickr On BEST ANSWER

Try using:

comboBox.setLightWeightPopupEnabled(false);

See Mixing Lightweight and Heavyweight Components for why this should work.