Open JPopupMenu from opened JComboBox
问题 I'd like to change OOTB behaviour of combobox, to freeze it after right mouse button click (detecting which button was clicked is easy, so that's not the point) and open JPopupMenu istead of choosing that entry. So - how to disable choosing entry on given condition and use custom behaviour then? I tried to start by adding mouse listeners to all combobox components, but without success - nothing changed import java.awt.BorderLayout; import java.awt.Component; import java.awt.event.MouseAdapter