From: Niki Roo Date: Wed, 29 May 2019 20:17:03 +0000 (+0200) Subject: fix config item '+' repaint X-Git-Tag: fanfix-swing-0.0.1~21^2~34 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=ee7a6ccb60b905ad1363805495652e2da81ddeb7;p=fanfix-swing.git fix config item '+' repaint --- diff --git a/src/be/nikiroo/utils/ui/ConfigItem.java b/src/be/nikiroo/utils/ui/ConfigItem.java index f9749693..c6b40753 100644 --- a/src/be/nikiroo/utils/ui/ConfigItem.java +++ b/src/be/nikiroo/utils/ui/ConfigItem.java @@ -136,13 +136,8 @@ public class ConfigItem> 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(); } });