Normand Briere
2019-07-27 1af7d3700724834e40ad8636bc9a56cdc3b19b15
LatheEditor.java
....@@ -37,15 +37,16 @@
3737 {
3838 super.SetupUI2(oe);
3939
40
- oe.ctrlPanel.add(typeLabel = new JLabel("Spline Type"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);
41
- oe.aConstraints.gridx += 1;
42
- //aConstraints.fill = GridBagConstraints.HORIZONTAL;
43
- //aConstraints.gridwidth = ObjEditor.GRIDWIDTH;
44
- oe.ctrlPanel.add(typeMenu = new JComboBox(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);
40
+ oe.ctrlPanel.add(typeLabel = new JLabel("Spline Type:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);
41
+
42
+ oe.ctrlPanel.Return();
43
+
44
+ oe.ctrlPanel.add(typeMenu = new JComboBox()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2);
4545 typeMenu.addActionListener(this);
46
- oe.aConstraints.gridx = 0;
47
- oe.aConstraints.gridy += 1;
48
- typeMenu.addItem("Linear");
46
+
47
+ oe.ctrlPanel.Return();
48
+
49
+ typeMenu.addItem("Linear");
4950 typeMenu.addItem("Quadratic");
5051 typeMenu.addItem("Cubic");
5152 //typeMenu.select(spline.type - 1);