diff --git a/designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java b/designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java index 326cab5de..c2d145983 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/widget/ui/FormWidgetCardPane.java @@ -9,8 +9,6 @@ import com.fr.design.mainframe.FormDesigner; import javax.swing.BorderFactory; import javax.swing.JPanel; import java.awt.BorderLayout; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; /** * Created by ibm on 2017/7/25. @@ -47,13 +45,6 @@ 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() {