From 89b25e7cc97f6fe221dfd41c4d463500f8a31bc1 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Tue, 25 Jun 2019 23:58:09 -0400 Subject: [PATCH] Edit panel pin state. --- LatheEditor.java | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/LatheEditor.java b/LatheEditor.java index 71c7e0f..696e3b6 100644 --- a/LatheEditor.java +++ b/LatheEditor.java @@ -37,15 +37,16 @@ { super.SetupUI2(oe); - oe.ctrlPanel.add(typeLabel = new JLabel("Spline Type"), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2); - oe.aConstraints.gridx += 1; - //aConstraints.fill = GridBagConstraints.HORIZONTAL; - //aConstraints.gridwidth = ObjEditor.GRIDWIDTH; - oe.ctrlPanel.add(typeMenu = new JComboBox(), oe.aConstraints, oe.ctrlPanel.getComponentCount()-2); + oe.ctrlPanel.add(typeLabel = new JLabel("Spline Type:")); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2); + + oe.ctrlPanel.Return(); + + oe.ctrlPanel.add(typeMenu = new JComboBox()); //, oe.aConstraints, oe.ctrlPanel.getComponentCount()-2); typeMenu.addActionListener(this); - oe.aConstraints.gridx = 0; - oe.aConstraints.gridy += 1; - typeMenu.addItem("Linear"); + + oe.ctrlPanel.Return(); + + typeMenu.addItem("Linear"); typeMenu.addItem("Quadratic"); typeMenu.addItem("Cubic"); //typeMenu.select(spline.type - 1); -- Gitblit v1.6.2