-1

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?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
이연구
  • 3
  • 2

1 Answers1

2

Try using:

comboBox.setLightWeightPopupEnabled(false);

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

camickr
  • 321,443
  • 19
  • 166
  • 288