From 8e80a024988c2c898af89535e10afd264a3fece3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 23 Jul 2014 07:37:31 +0000 Subject: [PATCH] * LOOOONG overdue layout bugfix... so easy and it took 3 years :D --- source/net/filebot/ui/rename/FormatDialog.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/source/net/filebot/ui/rename/FormatDialog.java b/source/net/filebot/ui/rename/FormatDialog.java index ee3d266e..86548ee8 100644 --- a/source/net/filebot/ui/rename/FormatDialog.java +++ b/source/net/filebot/ui/rename/FormatDialog.java @@ -199,21 +199,6 @@ public class FormatDialog extends JDialog { pane.add(header, "h 60px, growx, dock north"); pane.add(content, "grow"); - addPropertyChangeListener("sample", new PropertyChangeListener() { - - @Override - public void propertyChange(PropertyChangeEvent evt) { - // set size after initial sample evaluations - invokeLater(400, new Runnable() { - - @Override - public void run() { - FormatDialog.this.pack(); - } - }); - } - }); - addPropertyChangeListener("sample", new PropertyChangeListener() { @Override @@ -415,7 +400,7 @@ public class FormatDialog extends JDialog { panel.add(formatLink); panel.add(new JLabel("…")); - panel.add(formatExample); + panel.add(formatExample, "wmin 150px"); } return panel;