|
|
@ -249,8 +249,13 @@ public class SmartInsertDBManipulationPane extends DBManipulationPane { |
|
|
|
while (dialog.getParent() != null) { |
|
|
|
while (dialog.getParent() != null) { |
|
|
|
dialog = dialog.getParent(); |
|
|
|
dialog = dialog.getParent(); |
|
|
|
if (dialog instanceof Dialog) { |
|
|
|
if (dialog instanceof Dialog) { |
|
|
|
|
|
|
|
final Dialog finalDialog = (Dialog) dialog; |
|
|
|
|
|
|
|
// 非模态的 直接设置可见 不会阻塞
|
|
|
|
|
|
|
|
if (!finalDialog.isModal()) { |
|
|
|
|
|
|
|
finalDialog.setVisible(true); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
//这边需要另起一个线程设置可见,防止阻塞
|
|
|
|
//这边需要另起一个线程设置可见,防止阻塞
|
|
|
|
final Container finalDialog = dialog; |
|
|
|
|
|
|
|
SwingWorker worker = new SwingWorker() { |
|
|
|
SwingWorker worker = new SwingWorker() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected Object doInBackground() throws Exception { |
|
|
|
protected Object doInBackground() throws Exception { |
|
|
|