|
|
@ -9,6 +9,8 @@ import com.fr.design.mainframe.FormDesigner; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by ibm on 2017/7/25. |
|
|
|
* Created by ibm on 2017/7/25. |
|
|
@ -22,6 +24,12 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
this.initLayout(); |
|
|
|
this.initLayout(); |
|
|
|
this.initScrollPane(); |
|
|
|
this.initScrollPane(); |
|
|
|
this.initPropertyPane(); |
|
|
|
this.initPropertyPane(); |
|
|
|
|
|
|
|
content.addMouseListener(new MouseAdapter() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
|
|
|
content.requestFocusInWindow(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void initPropertyPane() { |
|
|
|
public void initPropertyPane() { |
|
|
@ -45,6 +53,7 @@ public class FormWidgetCardPane extends AbstractAttrNoScrollPane { |
|
|
|
}; |
|
|
|
}; |
|
|
|
this.add(basicScrollPane, BorderLayout.CENTER); |
|
|
|
this.add(basicScrollPane, BorderLayout.CENTER); |
|
|
|
this.content = jPanel; |
|
|
|
this.content = jPanel; |
|
|
|
|
|
|
|
this.content.requestFocusInWindow(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initLayout() { |
|
|
|
private void initLayout() { |
|
|
|