Browse Source

Merge pull request #11021 in DESIGN/design from release/11.0 to bugfix/11.0

* commit '0edf3d42821911443a7c9ba10498747195d8f246':
  REPORT-87060 Swing界面操作在Swing线程避免线程卡死
bugfix/11.0
superman 2 years ago
parent
commit
181307a4cc
  1. 17
      designer-base/src/main/java/com/fr/design/data/DesignTableDataManager.java

17
designer-base/src/main/java/com/fr/design/data/DesignTableDataManager.java

@ -41,6 +41,7 @@ import com.fr.stable.StringUtils;
import com.fr.stable.xml.XMLPrintWriter;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.io.ByteArrayOutputStream;
@ -649,13 +650,15 @@ public abstract class DesignTableDataManager {
}
private static void showParaWindow(final Map<String, Object> parameterMap, ParameterProvider[] inParameters) {
final ParameterInputPane pPane = new ParameterInputPane(inParameters);
pPane.showSmallWindow(new JFrame(), new DialogActionAdapter() {
@Override
public void doOk() {
parameterMap.putAll(pPane.update());
}
}).setVisible(true);
SwingUtilities.invokeLater(() -> {
final ParameterInputPane pPane = new ParameterInputPane(inParameters);
pPane.showSmallWindow(new JFrame(), new DialogActionAdapter() {
@Override
public void doOk() {
parameterMap.putAll(pPane.update());
}
}).setVisible(true);
});
}
public static void setThreadLocal(String value) {

Loading…
Cancel
Save