Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with popup menu and threads
- From: David_Miller@xxxxxxxxx (David_Miller@xxxxxxxxx)
- Subject: Problem with popup menu and threads
- Date: Fri, 29 Oct 1999 14:45:10 -0400
Hi, I'm stumped trying to get these menus to work correctly. This is the situation: I have a Frame in the background that covers the whole desktop. The screen is then divided into 2 parts. There is a Window on the bottom that uses heay weight components and a Window on the top that uses light weight components. When the JButtons on the upper window are pressed, a popup menu appears. This menu is derived from PopupMenu not JPopupMenu. Asynchronous events happen that the underlying logic handles and causes the buttons on the top window to change in appearance. The problem is that the buttons do not change until the menu disappears. As long as the menu is showing, nothing is happening to the button's appearance. There are lots of threads in my application, so I thought there might be a problem with showing a PopupMenu on top of a Swing Window. The thread that shows the menu is not the AWT thread. I tried to make the menu a JPopupMenu, but it never displays! I can see in my trace that show() method is being called and returned from, but the menu never appears. There is only a flash. Any ideas on how to make the buttons do something??? TIA David Miller --- To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- Prev by Date: How can I unsubscribe a Yahoo email account?
- Next by Date: what's faster - NamedPipes or Port communication?
- Previous by thread: How can I unsubscribe a Yahoo email account?
- Next by thread: how to subscribe?
- Index(es):