From ee7a6ccb60b905ad1363805495652e2da81ddeb7 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 29 May 2019 22:17:03 +0200 Subject: [PATCH] fix config item '+' repaint --- src/be/nikiroo/utils/ui/ConfigItem.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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(); } }); -- 2.27.0