Normand Briere
2019-04-29 bed42c663d286d76a32f155049f9efabc2fdb73f
ObjEditor.java
....@@ -19,6 +19,8 @@
1919 import //weka.core.
2020 matrix.Matrix;
2121
22
+import grafeme.ui.*;
23
+
2224 class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI,
2325 ActionListener, ChangeListener,
2426 InputMethodListener,
....@@ -1217,12 +1219,12 @@
12171219 //frontView.object = copy;
12181220 //sideView.object = copy;
12191221
1220
- XYZPanel = new JPanel();
1221
- XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
1222
+ XYZPanel = new cGridBag().setVertical(true);
1223
+ //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5));
12221224
1223
- XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1224
- XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll);
1225
- XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll);
1225
+ XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll);
1226
+ XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll);
1227
+ XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll);
12261228
12271229 /*
12281230 gridPanel = new JPanel(); //new BorderLayout());
....@@ -1330,6 +1332,7 @@
13301332 //bigPanel.setSize(new Dimension(10,10));
13311333 //bigPanel.add(ctrlPanel);
13321334 //bigPanel.add(gridPanel);
1335
+ /**
13331336 bigThree = new JPanel();
13341337 //big.setLayout(new FlowLayout(FlowLayout.LEFT));
13351338 bigThree.setLayout(new GridBagLayout()); //1,3,5,5));
....@@ -1353,7 +1356,13 @@
13531356 // aConstraints.gridheight = 3;
13541357 aWindowConstraints.fill = GridBagConstraints.VERTICAL;
13551358 bigThree.add(XYZPanel, aWindowConstraints);
1359
+ /**/
13561360
1361
+ bigThree = new cGridBag();
1362
+ bigThree.addComponent(scenePanel);
1363
+ bigThree.addComponent(centralPanel);
1364
+ bigThree.addComponent(XYZPanel);
1365
+
13571366 // // SIDE EFFECT!!!
13581367 // aConstraints.gridx = 0;
13591368 // aConstraints.gridy = 0;
....@@ -4546,10 +4555,10 @@
45464555 JScrollPane infoPanel;
45474556 JPanel optionsPanel;
45484557 JTabbedPane objectPanel;
4549
- JPanel XYZPanel;
4558
+ cGridBag XYZPanel;
45504559 JSplitPane gridPanel;
45514560 JSplitPane bigPanel;
4552
- JPanel bigThree;
4561
+ cGridBag bigThree;
45534562 JTabbedPane scenePanel;
45544563 JPanel centralPanel;
45554564 JSplitPane cameraPanel;