|
-
Sep 24th, 2004, 08:51 AM
#1
Thread Starter
Addicted Member
Popup Nightmare
Hello
i've implements a component that is similair to a JComboBox, but will allow me to place any JComponent inside it, so i can make a more powereful editor.....
Now this works fine as long as i do'nt use any components on the inserted component that do popup action.. like a JComboBox... now i'm guessing this is because they are all trying to use the same popup instance....
does anyone know a way of getting around this so that they can all use there own? or is there a way i can make my custom combo box component allow for inner components that have popups?
Hope that makes sense
Andy
Last edited by Andy_Hollywood; Sep 27th, 2004 at 04:46 AM.
-
Sep 27th, 2004, 04:48 AM
#2
Thread Starter
Addicted Member
resolved
Well i had a play and the basic solution was to use a popup instead of a JPopupMenu, then add a mouse listener to the entire hierarchy part from the button that invokes the mouse listener and the panel that is poped up, then when a mouse click is detected hide the popup and remove the listener from everything.
And after a little more investigation, this is exactly what the basicpopupUI us doing.....
anybody need the source then let me know....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|