|
|
@ -252,12 +252,13 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH |
|
|
|
// 点击"编辑"按钮,弹出面板
|
|
|
|
// 点击"编辑"按钮,弹出面板
|
|
|
|
protected class PopupEditDialog extends JDialog { |
|
|
|
protected class PopupEditDialog extends JDialog { |
|
|
|
private JComponent editPane; |
|
|
|
private JComponent editPane; |
|
|
|
private static final int WIDTH = 470; |
|
|
|
private static final int WIDTH = 490; |
|
|
|
private static final int HEIGHT = 550; |
|
|
|
private static final int HEIGHT = 570; |
|
|
|
|
|
|
|
|
|
|
|
PopupEditDialog(JComponent pane) { |
|
|
|
PopupEditDialog(JComponent pane) { |
|
|
|
super(DesignerContext.getDesignerFrame()); |
|
|
|
super(DesignerContext.getDesignerFrame()); |
|
|
|
setUndecorated(true); |
|
|
|
setUndecorated(true); |
|
|
|
|
|
|
|
pane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); |
|
|
|
this.editPane = pane; |
|
|
|
this.editPane = pane; |
|
|
|
this.getContentPane().add(editPane, BorderLayout.CENTER); |
|
|
|
this.getContentPane().add(editPane, BorderLayout.CENTER); |
|
|
|
setSize(WIDTH, HEIGHT); |
|
|
|
setSize(WIDTH, HEIGHT); |
|
|
|