How to keep focus unchanged in popup window while refreshing Parent window
I have a parent window (frame) and there are 3 JTables on it. The 3 JTables are binded with model so that when the data in model changes, the JTable will be refreshed automatically. The problem is on the gui, it can pop-up a dialog window. While the popup window is open, the JTables on the parent window could be refreshed by incoming data through other threads. In the case the parent window is refreshed, the cursor focus on the pop-up window is lost, which is quite annoying. Is there any way to keep the focus not changed?