Results 1 to 4 of 4
Thread: Java popup irritation
- 09-05-2009, 10:46 PM #1
Senior Member
- Join Date
- Nov 2007
- Posts
- 160
- Rep Power
- 6
Java popup irritation
I have a JPopupMenu that I created and then displayed using setLocation and setVisible. However, I just upgraded to the latest version of the JRE and now a popup menu appears, but it doesn't work and doesn't disappear when I click away...
I changed the code to use the show method to display the popup and now it works, but now the focus handling isn't so good. i.e. Now if I want to leave the popup and click on a button somewhere else, I have to click twice: once to remove focus from the popup and again to actually click the button...
What is happening? Have they stuffed something up or have I?
And I tried on two computers, so the problem was definitely created by the change to the latest version of Java (6, update 16).
- 09-06-2009, 07:07 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Difficult to say without seeing what your code looked like.
- 09-06-2009, 01:35 PM #3
Senior Member
- Join Date
- Nov 2007
- Posts
- 160
- Rep Power
- 6
Ok right. Here's a simplified example of what I'm trying to do:
Is that enough detail?Java Code:JList myList = new JList; JPopupMenu popup = new JPopupMenu(); popup.add("a menu item"); popup.show(myList, myXCoordinate, myYCoordinate);
- 09-13-2009, 09:43 AM #4
Senior Member
- Join Date
- Nov 2007
- Posts
- 160
- Rep Power
- 6
Similar Threads
-
Help needed for using popup in Java
By uhdam in forum AWT / SwingReplies: 2Last Post: 03-28-2009, 09:16 PM -
java.swing.popup not hiding
By pinks_70986 in forum AWT / SwingReplies: 1Last Post: 02-11-2009, 08:35 PM -
ArrayList irritation
By gnarly hogie in forum New To JavaReplies: 16Last Post: 12-16-2008, 06:57 PM -
how we get popup window in java
By baserohit in forum Advanced JavaReplies: 1Last Post: 03-22-2008, 04:39 AM -
Popup in Java
By fernando in forum New To JavaReplies: 1Last Post: 08-07-2007, 06:55 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks