From: Niki Roo Date: Wed, 29 May 2019 20:17:03 +0000 (+0200) Subject: fix config item '+' repaint X-Git-Tag: fanfix-3.0.1~29^2~27 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=ee7a6ccb60b905ad1363805495652e2da81ddeb7;p=fanfix.git fix config item '+' repaint --- diff --git a/src/be/nikiroo/utils/ui/ConfigItem.java b/src/be/nikiroo/utils/ui/ConfigItem.java index f974969..c6b4075 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(); } });