Surely you mean someOtherThing.putClientProperty("doNotCancelPopup", preventHide) on line 3, no?
Well, i really dont know, i tried using other things (the popup menu itself or the button which calls it) at line 3 but of no avail.
I saw the trick supposed to prevent the popup menu from hiding on this site.
As fact, I'm trying to create a JTable with a button on the top right of the scrollbar which opens a popup menu with comboboxes and table column names (As in JXTable but using JTable ). I have the desired result except the popup disappears each time i click on the combo.
There are no new questions, but there may be new answers.
Joined: Jul 02, 2012
This little piece of code will explain my problem.
Click anywhere to make the popup window with the combobox appear. Then when clickin on the combobox, the actual popup disappears. After some research I thought I found a solution which was the one that Brian Cole mentioned:
But that didn't change anything.
Any suggestions? I know that one solution is to skip the popup frame and make a window instead, but that will need a lot of rework in the code
which I would rather not re-implement.