How to prevent the TrayIcon popup to occupy the whole dispatcher thread
问题 I have a java application that uses a JFrame as well as a TrayIcon and I added a PopupMenu to the TrayIcon . When I click on the TrayIcon the popup menu shows up, but the main frame freezes as long as the PopupMenu is visible. My first thought was that the event dispatch thread is occupied by someone. So I wrote a small example application that uses a swing worker and a progress bar. public class TrayIconTest { public static void main(String[] args) throws AWTException { JFrame frame = new