Search code examples
javaswinguser-interfacecomboboxvlcj

ComboBox items are overlapped


Please have a view of the attached image. I use VLCJ to build this application. However, it is unexpected that the item in combobox is hidden by the Canvas (which is used in VLCJ player). How to solve it?

Screenshot


Solution

  • Depending on the jre version the following line may help:

     comboBox.setLightWeightPopupEnabled(false);
    

    which tells swing to use a heavyweight dropdown instead of a lightweight one.