.. | .. |
---|
19 | 19 | import //weka.core. |
---|
20 | 20 | matrix.Matrix; |
---|
21 | 21 | |
---|
| 22 | +import grafeme.ui.*; |
---|
| 23 | + |
---|
22 | 24 | class ObjEditor /*extends JFrame*/ implements iCallBack, ObjectUI, |
---|
23 | 25 | ActionListener, ChangeListener, |
---|
24 | 26 | InputMethodListener, |
---|
.. | .. |
---|
1187 | 1189 | //JPanel worldPanel = |
---|
1188 | 1190 | // new gov.nasa.worldwind.examples.ApplicationTemplate.AppPanel(null, true); |
---|
1189 | 1191 | //worldPanel.setName("World"); |
---|
1190 | | - centralPanel = new JPanel(new BorderLayout()); |
---|
| 1192 | + centralPanel = new cGridBag(); |
---|
| 1193 | + centralPanel.preferredWidth = 20; |
---|
1191 | 1194 | timelinePanel = new JPanel(new BorderLayout()); |
---|
1192 | 1195 | timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel); |
---|
1193 | 1196 | |
---|
.. | .. |
---|
1217 | 1220 | //frontView.object = copy; |
---|
1218 | 1221 | //sideView.object = copy; |
---|
1219 | 1222 | |
---|
1220 | | - XYZPanel = new JPanel(); |
---|
1221 | | - XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); |
---|
| 1223 | + XYZPanel = new cGridBag().setVertical(true); |
---|
| 1224 | + //XYZPanel.setLayout(new GridLayout(3, 1, 5, 5)); |
---|
1222 | 1225 | |
---|
1223 | | - XYZPanel.add(/*BorderLayout.SOUTH,*/sideView); // Scroll); |
---|
1224 | | - XYZPanel.add(/*BorderLayout.CENTER,*/frontView); // Scroll); |
---|
1225 | | - XYZPanel.add(/*BorderLayout.NORTH,*/topView); // Scroll); |
---|
| 1226 | + XYZPanel.preferredWidth = 5; |
---|
| 1227 | + XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll); |
---|
| 1228 | + XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll); |
---|
| 1229 | + XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll); |
---|
1226 | 1230 | |
---|
1227 | 1231 | /* |
---|
1228 | 1232 | gridPanel = new JPanel(); //new BorderLayout()); |
---|
.. | .. |
---|
1284 | 1288 | scrollpane.setWheelScrollingEnabled(true); |
---|
1285 | 1289 | scrollpane.addMouseWheelListener(this); // Default not fast enough |
---|
1286 | 1290 | |
---|
1287 | | - /*JTabbedPane*/ scenePanel = new JTabbedPane(); |
---|
1288 | | - scenePanel.add(scrollpane); |
---|
| 1291 | + /*JTabbedPane*/ scenePanel = new cGridBag(); |
---|
| 1292 | + scenePanel.preferredWidth = 7; |
---|
| 1293 | + |
---|
| 1294 | + JTabbedPane tabbedPane = new JTabbedPane(); |
---|
| 1295 | + tabbedPane.add(scrollpane); |
---|
1289 | 1296 | |
---|
1290 | | - scenePanel.add(FSPane = new cFileSystemPane(this)); |
---|
| 1297 | + tabbedPane.add(FSPane = new cFileSystemPane(this)); |
---|
1291 | 1298 | |
---|
1292 | 1299 | optionsPanel = new JPanel(new GridBagLayout()); |
---|
1293 | 1300 | |
---|
.. | .. |
---|
1295 | 1302 | |
---|
1296 | 1303 | AddOptions(optionsPanel, aConstraints); |
---|
1297 | 1304 | |
---|
1298 | | - scenePanel.add(optionsPanel); |
---|
1299 | | - |
---|
| 1305 | + tabbedPane.add(optionsPanel); |
---|
| 1306 | + |
---|
| 1307 | + scenePanel.add(tabbedPane); |
---|
1300 | 1308 | |
---|
1301 | 1309 | /* |
---|
1302 | 1310 | cTree jTree = new cTree(null); |
---|
.. | .. |
---|
1330 | 1338 | //bigPanel.setSize(new Dimension(10,10)); |
---|
1331 | 1339 | //bigPanel.add(ctrlPanel); |
---|
1332 | 1340 | //bigPanel.add(gridPanel); |
---|
| 1341 | + /** |
---|
1333 | 1342 | bigThree = new JPanel(); |
---|
1334 | 1343 | //big.setLayout(new FlowLayout(FlowLayout.LEFT)); |
---|
1335 | 1344 | bigThree.setLayout(new GridBagLayout()); //1,3,5,5)); |
---|
.. | .. |
---|
1353 | 1362 | // aConstraints.gridheight = 3; |
---|
1354 | 1363 | aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
1355 | 1364 | bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 1365 | + /**/ |
---|
1356 | 1366 | |
---|
| 1367 | + bigThree = new cGridBag(); |
---|
| 1368 | + bigThree.addComponent(scenePanel); |
---|
| 1369 | + bigThree.addComponent(centralPanel); |
---|
| 1370 | + bigThree.addComponent(XYZPanel); |
---|
| 1371 | + |
---|
1357 | 1372 | // // SIDE EFFECT!!! |
---|
1358 | 1373 | // aConstraints.gridx = 0; |
---|
1359 | 1374 | // aConstraints.gridy = 0; |
---|
.. | .. |
---|
4546 | 4561 | JScrollPane infoPanel; |
---|
4547 | 4562 | JPanel optionsPanel; |
---|
4548 | 4563 | JTabbedPane objectPanel; |
---|
4549 | | - JPanel XYZPanel; |
---|
| 4564 | + cGridBag XYZPanel; |
---|
4550 | 4565 | JSplitPane gridPanel; |
---|
4551 | 4566 | JSplitPane bigPanel; |
---|
4552 | | - JPanel bigThree; |
---|
4553 | | - JTabbedPane scenePanel; |
---|
4554 | | - JPanel centralPanel; |
---|
| 4567 | + cGridBag bigThree; |
---|
| 4568 | + cGridBag scenePanel; |
---|
| 4569 | + cGridBag centralPanel; |
---|
4555 | 4570 | JSplitPane cameraPanel; |
---|
4556 | 4571 | JPanel timelinePanel; |
---|
4557 | 4572 | JMenuBar timelineMenubar; |
---|