Browse Source

REPORT-53775 条件属性弹窗概率性 关闭不了

zheng-1641779399395
hades 4 years ago
parent
commit
13542e7d68
  1. 7
      designer-realize/src/main/java/com/fr/design/write/submit/SmartInsertDBManipulationPane.java

7
designer-realize/src/main/java/com/fr/design/write/submit/SmartInsertDBManipulationPane.java

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

Loading…
Cancel
Save