|
|
@ -171,7 +171,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta |
|
|
|
* 初始menuPane的方法 方便OEM时修改该组件 |
|
|
|
* 初始menuPane的方法 方便OEM时修改该组件 |
|
|
|
* @param ad |
|
|
|
* @param ad |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void initMenuPane(){ |
|
|
|
protected void initMenuPane(){ |
|
|
|
menuPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
menuPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
menuPane.add(new UIMenuHighLight(), BorderLayout.SOUTH); |
|
|
|
menuPane.add(new UIMenuHighLight(), BorderLayout.SOUTH); |
|
|
|
menuPane.add(initNorthEastPane(ad), BorderLayout.EAST); |
|
|
|
menuPane.add(initNorthEastPane(ad), BorderLayout.EAST); |
|
|
@ -207,7 +207,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta |
|
|
|
this.setTitle();// james:因为有默认的了
|
|
|
|
this.setTitle();// james:因为有默认的了
|
|
|
|
// set this to context.
|
|
|
|
// set this to context.
|
|
|
|
DesignerContext.setDesignerFrame(this); |
|
|
|
DesignerContext.setDesignerFrame(this); |
|
|
|
|
|
|
|
|
|
|
|
// the content pane
|
|
|
|
// the content pane
|
|
|
|
basePane.setLayout(new BorderLayout()); |
|
|
|
basePane.setLayout(new BorderLayout()); |
|
|
|
toolbarPane = new JPanel() { |
|
|
|
toolbarPane = new JPanel() { |
|
|
@ -267,6 +267,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta |
|
|
|
this.setExtendedState(JFrame.MAXIMIZED_BOTH); |
|
|
|
this.setExtendedState(JFrame.MAXIMIZED_BOTH); |
|
|
|
this.setDropTarget(new DropTarget(this, DnDConstants.ACTION_MOVE, new FileDropTargetListener(), true)); |
|
|
|
this.setDropTarget(new DropTarget(this, DnDConstants.ACTION_MOVE, new FileDropTargetListener(), true)); |
|
|
|
closeMode = UIConstants.CLOSE_OF_AUTHORITY; |
|
|
|
closeMode = UIConstants.CLOSE_OF_AUTHORITY; |
|
|
|
|
|
|
|
initMenuPane(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void initTitleIcon() { |
|
|
|
public void initTitleIcon() { |
|
|
|