Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /openetl/src/org/tigris/openetl/ui/

openetl
Discussion topic

Back to topic list

CVS update: /openetl/src/org/tigris/openetl/ui/

Reply

Author ernani_joppert
Full name Ernani Joppert Pontes Martins
Date 2004-08-05 15:36:47 PDT
Message User: ernani_joppert
Date: 04/08/05 15:36:47

Modified:
 /openetl/src/org/tig​ris/openetl/ui/
  MainFrame.java

Log:
 Added ToolBar support to main ui.

File Changes:

Directory: /openetl/src/org/tig​ris/openetl/ui/
====================​====================​======

File [changed]: MainFrame.java
Url: http://openetl.tigri​s.org/source/browse/​openetl/src/org/tigr​is/openetl/ui/MainFr​ame.java?r1=1.2&​r2=1.3
Delta lines: +11 -1
--------------------
--- MainFrame.java 25 Jul 2004 05:45:30 -0000 1.2
+++ MainFrame.java 5 Aug 2004 22:36:47 -0000 1.3
@@ -3,6 +3,7 @@
  */
 package org.tigris.openetl.ui;
 
+import java.awt.BorderLayout;
 import java.awt.Dimension;
 import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
@@ -38,13 +39,22 @@
 
         super(Application.MAIN_TITLE);
 
+ // set window bounds.
         this.setBounds(Appli​cation.borderSize, Application.borderSize,
                 screenSize.width - Application.borderSize * 2,
                 screenSize.height - Application.borderSize * 2);
+
+ // create internal frame for the MDI.
         this.createInternalFrame();
- this.setContentPane(mdiForm);
+
+ // add MenuBar to the main frame.
         this.setJMenuBar(new MenuBar(this));
 
+ // add ToolBar instance to the main frame
+ this.getContentPane(​).add(BorderLayout.N​ORTH, new ToolBar(this));
+
+ // add the MdiForm form to the
+ this.getContentPane(​).add(BorderLayout.C​ENTER, mdiForm);
     }
 
     /**




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@open​etl.tigris.org
For additional commands, e-mail: cvs-help at openetl dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /openetl/src/org/tigris/openetl/ui/ ernani_joppert Ernani Joppert Pontes Martins 2004-08-05 15:36:47 PDT
Messages per page: