Canvas and JPopupMenu?

Hi,



I think the title expresses everything :slight_smile:

I tried to open JPopupMenu over Canvas (also with EventQueue)



[java]



EventQueue.invokeLater(new Runnable() {



@Override

public void run() {

popupMenu.show(canvas, location.x, location.y);

}

});



[/java]

Canvas turns black. I think that this is not possible.



Thanks.



Regards,

Equi

Use JPopupMenu.setDefaultLightWeightPopupEnabled(false); before opening any window.