Browse Source

Pull request #1698: REPORT-32162 替换 ui 的时候,需要在事件分发线程中

Merge in DESIGN/design from ~HARRISON/design:final/10.0 to final/10.0

* commit '6ae8ef494ef9e6d8fac1c5730d22b3327baaffd6':
  REPORT-32162 替换 ui 的时候,需要在事件分发线程中
final/10.0
Kara 5 years ago
parent
commit
9c06381d4a
  1. 10
      designer-base/src/main/java/com/fr/design/mainframe/EastRegionContainerPane.java

10
designer-base/src/main/java/com/fr/design/mainframe/EastRegionContainerPane.java

@ -494,9 +494,15 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
propertyItemMap.get(KEY_CONFIGURED_ROLES).replaceContentPane(pane);
}
public void replaceKeyPane(String key, JComponent pane) {
public void replaceKeyPane(final String key, final JComponent pane) {
propertyItemMap.get(key).replaceContentPane(pane);
//需要放到 ui 线程中处理
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
propertyItemMap.get(key).replaceContentPane(pane);
}
});
}
public JComponent getConfiguredRolesPane() {

Loading…
Cancel
Save