Browse Source

REPORT-56623 优化代码

fix-lag
方磊 3 years ago
parent
commit
9a2675f097
  1. 12
      designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

12
designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java

@ -24,12 +24,6 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
this.initLayout();
this.initScrollPane();
this.initPropertyPane();
content.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
content.requestFocusInWindow();
}
});
}
public void initPropertyPane() {
@ -54,6 +48,12 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane {
this.add(basicScrollPane, BorderLayout.CENTER);
this.content = jPanel;
this.content.requestFocusInWindow();
this.content.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
content.requestFocusInWindow();
}
});
}
private void initLayout() {

Loading…
Cancel
Save