From c0c300a9dbd4c0fc127e003e9481d3f9246bbe7a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 28 Apr 2019 21:47:06 -0400 Subject: [PATCH] Big three proportional --- ObjEditor.java | 45 ++++++++++++++++++++++++++++++--------------- 1 files changed, 30 insertions(+), 15 deletions(-) diff --git a/ObjEditor.java b/ObjEditor.java index d819144..877e81e 100644 --- a/ObjEditor.java +++ b/ObjEditor.java @@ -19,6 +19,8 @@ import //weka.core. matrix.Matrix; +import grafeme.ui.*; + class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI, ActionListener, ChangeListener, InputMethodListener, @@ -1187,7 +1189,8 @@ //JPanel worldPanel = // new gov.nasa.worldwind.examples.ApplicationTemplate.AppPanel(null, true); //worldPanel.setName("World"); - centralPanel = new JPanel(new BorderLayout()); + centralPanel = new cGridBag(); + centralPanel.preferredWidth = 20; timelinePanel = new JPanel(new BorderLayout()); timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel); @@ -1217,12 +1220,13 @@ //frontView.object = copy; //sideView.object = copy; - XYZPanel = new JPanel(); - XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); + XYZPanel = new cGridBag().setVertical(true); + //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); - XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll); - XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll); - XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll); + XYZPanel.preferredWidth = 5; + XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll); + XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll); + XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll); /* gridPanel = new JPanel(); //new BorderLayout()); @@ -1284,10 +1288,13 @@ scrollpane.setWheelScrollingEnabled(true); scrollpane.addMouseWheelListener(this); // Default not fast enough - /*JTabbedPane*/ scenePanel = new JTabbedPane(); - scenePanel.add(scrollpane); + /*JTabbedPane*/ scenePanel = new cGridBag(); + scenePanel.preferredWidth = 7; + + JTabbedPane tabbedPane = new JTabbedPane(); + tabbedPane.add(scrollpane); - scenePanel.add(FSPane = new cFileSystemPane(this)); + tabbedPane.add(FSPane = new cFileSystemPane(this)); optionsPanel = new JPanel(new GridBagLayout()); @@ -1295,8 +1302,9 @@ AddOptions(optionsPanel, aConstraints); - scenePanel.add(optionsPanel); - + tabbedPane.add(optionsPanel); + + scenePanel.add(tabbedPane); /* cTree jTree = new cTree(null); @@ -1330,6 +1338,7 @@ //bigPanel.setSize(new Dimension(10,10)); //bigPanel.add(ctrlPanel); //bigPanel.add(gridPanel); + /** bigThree = new JPanel(); //big.setLayout(new FlowLayout(FlowLayout.LEFT)); bigThree.setLayout(new GridBagLayout()); //1,3,5,5)); @@ -1353,7 +1362,13 @@ // aConstraints.gridheight = 3; aWindowConstraints.fill = GridBagConstraints.VERTICAL; bigThree.add(XYZPanel, aWindowConstraints); + /**/ + bigThree = new cGridBag(); + bigThree.addComponent(scenePanel); + bigThree.addComponent(centralPanel); + bigThree.addComponent(XYZPanel); + // // SIDE EFFECT!!! // aConstraints.gridx = 0; // aConstraints.gridy = 0; @@ -4546,12 +4561,12 @@ JScrollPane infoPanel; JPanel optionsPanel; JTabbedPane objectPanel; - JPanel XYZPanel; + cGridBag XYZPanel; JSplitPane gridPanel; JSplitPane bigPanel; - JPanel bigThree; - JTabbedPane scenePanel; - JPanel centralPanel; + cGridBag bigThree; + cGridBag scenePanel; + cGridBag centralPanel; JSplitPane cameraPanel; JPanel timelinePanel; JMenuBar timelineMenubar; -- Gitblit v1.6.2