From cbe4e90105d07d7d3fecabffaa01342403aa2ae3 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Thu, 19 Sep 2019 20:54:00 -0400
Subject: [PATCH] Better navigation.

---
 AttributeEditor.java |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/AttributeEditor.java b/AttributeEditor.java
index 797e00a..4552a44 100644
--- a/AttributeEditor.java
+++ b/AttributeEditor.java
@@ -41,20 +41,24 @@
                 super.SetupUI2(oe); // Shows composite UI !!
                 //super.SetupName(oe);
                 
-                oe.aConstraints.weighty = 0;
-                
-		oe.aConstraints.gridwidth = 1;
-		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
-                oe.aConstraints.gridwidth = 1;
-                oe.aConstraints.anchor = GridBagConstraints.WEST;
-                oe.ctrlPanel.add(cleardepth = new JCheckBox("Clear Depth", attribute.cleardepth), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
-                oe.aConstraints.gridx += 1;
+//                oe.aConstraints.weighty = 0;
+//                
+//		oe.aConstraints.gridwidth = 1;
+//		oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
+//                oe.aConstraints.gridwidth = 1;
+//                oe.aConstraints.anchor = GridBagConstraints.WEST;
+                oe.ctrlPanel.add(cleardepth = new JCheckBox("Clear Depth", attribute.cleardepth)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
+
+                oe.ctrlPanel.Return();
+//                oe.aConstraints.gridx += 1;
 //                oe.ctrlPanel.add(passtest = new JCheckBox("Write depth", attribute.passtest), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
 //                oe.aConstraints.gridx += 1;
-                oe.ctrlPanel.add(passtest = new JCheckBox("Pass Test", attribute.passtest), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
-                oe.aConstraints.gridx += 1;
-                oe.ctrlPanel.add(backfacecull = new JCheckBox("Backface Cull", attribute.backfacecull), oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
-                oe.aConstraints.gridx += 1;
+                oe.ctrlPanel.add(passtest = new JCheckBox("Pass Test", attribute.passtest)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
+                oe.ctrlPanel.Return();
+//                oe.aConstraints.gridx += 1;
+                oe.ctrlPanel.add(backfacecull = new JCheckBox("Backface Cull", attribute.backfacecull)); //, oe.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
+                oe.ctrlPanel.Return();
+//                oe.aConstraints.gridx += 1;
                 
 		cleardepth.addItemListener(this);
 		passtest.addItemListener(this);

--
Gitblit v1.6.2