Normand Briere
2019-08-06 b3ae4e889872ca0b9ca76f1d17b2f0b961226729
KleinEditor.java
....@@ -38,8 +38,9 @@
3838 {
3939 super.SetupUI2(oe);
4040
41
- radiusField = AddSlider(oe.ctrlPanel, "Radius:", 0, 20.0, klein.radius, 1);
42
- Return();
41
+ radiusPanel = AddSlider(oe.ctrlPanel, "Radius:", 0, 20.0, klein.radius, 1);
42
+ this.radiusField = (cNumberSlider)radiusPanel.getComponent(1);
43
+ oe.ctrlPanel.Return();
4344 }
4445
4546 void Clear()
....@@ -97,6 +98,8 @@
9798
9899 Klein klein;
99100 cNumberSlider radiusField;
101
+
102
+ cGridBag radiusPanel;
100103
101104 public ObjEditor GetEditor()
102105 {
....@@ -111,8 +114,9 @@
111114
112115 public void closeUI()
113116 {
114
- Remove(radiusField);
115
-
117
+ //Remove(radiusField);
118
+
119
+ objEditor.ctrlPanel.remove(radiusPanel);
116120 super.closeUI();
117121 }
118122