fix config item '+' repaint
authorNiki Roo <niki@nikiroo.be>
Wed, 29 May 2019 20:17:03 +0000 (22:17 +0200)
committerNiki Roo <niki@nikiroo.be>
Wed, 29 May 2019 20:17:03 +0000 (22:17 +0200)
src/be/nikiroo/utils/ui/ConfigItem.java

index f974969335c2a5b2d725e5682cfe04e8e47420ad..c6b40753addabce25fc9d10c8b01c6ac426d7905 100644 (file)
@@ -136,13 +136,8 @@ public class ConfigItem<E extends Enum<E>> extends JPanel {
                                                                        .getListSize(false));
                                        main.add(field);
 
-                                       // TODO this doesn't woooooorkk
-                                       add.invalidate();
-                                       field.invalidate();
-                                       main.invalidate();
-                                       ConfigItem.this.repaint();
-                                       ConfigItem.this.validate();
-                                       ConfigItem.this.repaint();
+                                       main.revalidate();
+                                       main.repaint();
                                }
                        });