Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13055/src/net/sourceforge/bprocessor/gui
Modified Files:
GUI.java
Log Message:
Changed layout of main window
Index: GUI.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** GUI.java 20 Dec 2005 15:43:31 -0000 1.18
--- GUI.java 23 Dec 2005 11:19:03 -0000 1.19
***************
*** 27,31 ****
import java.awt.BorderLayout;
import java.awt.Component;
- import java.awt.Dimension;
import java.awt.event.KeyEvent;
--- 27,30 ----
***************
*** 33,37 ****
import javax.swing.JMenu;
import javax.swing.JMenuItem;
- import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
--- 32,35 ----
***************
*** 57,61 ****
/** The middle/right split pane */
! private JSplitPane splitPaneTopDown;
/** The splash */
--- 55,59 ----
/** The middle/right split pane */
! private JSplitPane splitPaneMiddleRight;
/** The splash */
***************
*** 293,303 ****
*/
public void createMainView() {
! splitPaneTopDown = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
! splitPaneTopDown.setTopComponent(new JPanel());
! splitPaneTopDown.setBottomComponent(new JPanel());
splitPaneLeftRight = new JSplitPane();
! splitPaneLeftRight.setRightComponent(new JPanel());
! splitPaneLeftRight.setLeftComponent(splitPaneTopDown);
getContentPane().setLayout(new BorderLayout());
--- 291,299 ----
*/
public void createMainView() {
! splitPaneMiddleRight = new JSplitPane();
! splitPaneMiddleRight.setResizeWeight(1.0);
splitPaneLeftRight = new JSplitPane();
! splitPaneLeftRight.setRightComponent(splitPaneMiddleRight);
getContentPane().setLayout(new BorderLayout());
***************
*** 310,315 ****
tp.addTab("Surfaces", new JScrollPane (new SurfacesTreeView()));
tp.addTab("Views", new JScrollPane (null));
- tp.setPreferredSize(new Dimension(170, 340));
- splitPaneTopDown.setMinimumSize(new Dimension(170, 340));
registerPanel(tp, SPLIT_LEFT);
--- 306,309 ----
***************
*** 326,334 ****
public void registerPanel(Component panel, Integer placement) {
if (placement.equals(SPLIT_LEFT)) {
! splitPaneTopDown.setTopComponent(new JScrollPane(panel));
} else if (placement.equals(SPLIT_MIDDLE)) {
! splitPaneLeftRight.setRightComponent(panel);
} else {
! splitPaneTopDown.setBottomComponent(new JScrollPane(panel));
}
}
--- 320,328 ----
public void registerPanel(Component panel, Integer placement) {
if (placement.equals(SPLIT_LEFT)) {
! splitPaneLeftRight.setLeftComponent(panel);
} else if (placement.equals(SPLIT_MIDDLE)) {
! splitPaneMiddleRight.setLeftComponent(panel);
} else {
! splitPaneMiddleRight.setRightComponent(panel);
}
}
***************
*** 351,354 ****
--- 345,349 ----
plash = null;
}
+ pack();
setVisible(true);
}
|