Browse Source

REPORT-55178 【组件背景分离】组件复用-设计界面,现在需要点两下选中组件才能出现工具栏

zheng-1641779399395
hades 3 years ago
parent
commit
1c6d9217ce
  1. 13
      designer-form/src/main/java/com/fr/design/mainframe/EditingMouseListener.java

13
designer-form/src/main/java/com/fr/design/mainframe/EditingMouseListener.java

@ -631,9 +631,16 @@ public class EditingMouseListener extends MouseInputAdapter {
selectionModel.selectACreatorAtMouseEvent(e);
refreshTopXCreator();
XCreator[] xCreators = selectionModel.getSelection().getSelectedCreators();
for (XCreator xCreator : xCreators) {
xCreator.setSelected(true);
}
// 放到事件队尾执行
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
for (XCreator xCreator : xCreators) {
xCreator.setSelected(true);
}
}
});
} else if (clickedNonCardButton && responseTabLayout(oldCreator, e)) {
// do nothing
} else {

Loading…
Cancel
Save