Browse Source

更正修改

master
hugh 8 years ago
parent
commit
d3be97ae90
  1. 5
      designer_base/src/com/fr/design/mainframe/DesignerFrame.java
  2. 4
      designer_base/src/com/fr/start/BaseDesigner.java

5
designer_base/src/com/fr/design/mainframe/DesignerFrame.java

@ -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() {

4
designer_base/src/com/fr/start/BaseDesigner.java

@ -148,9 +148,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
} }
protected DesignerFrame createDesignerFrame() { protected DesignerFrame createDesignerFrame() {
DesignerFrame frame = new DesignerFrame(this); return new DesignerFrame(this);
frame.initMenuPane();
return frame;
} }
protected int getStartPort() { protected int getStartPort() {

Loading…
Cancel
Save