From eaa48c43ae958baa95a69dbab3b8a4f258054046 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 6 Aug 2014 18:02:18 +0000 Subject: [PATCH] * force equals cell height for both lists, just in case --- source/net/filebot/ui/rename/RenameListCellRenderer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/net/filebot/ui/rename/RenameListCellRenderer.java b/source/net/filebot/ui/rename/RenameListCellRenderer.java index cd822e72..21230bba 100644 --- a/source/net/filebot/ui/rename/RenameListCellRenderer.java +++ b/source/net/filebot/ui/rename/RenameListCellRenderer.java @@ -6,6 +6,7 @@ import static net.filebot.util.ui.SwingUI.*; import java.awt.AlphaComposite; import java.awt.Color; +import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Insets; @@ -55,6 +56,14 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer { this.add(typeRenderer, "gap rel:push, hidemode 3"); } + @Override + public Dimension getPreferredSize() { + // force equals cell height for both lists + Dimension dim = super.getPreferredSize(); + dim.height = 28; + return dim; + } + @Override public void configureListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.configureListCellRendererComponent(list, value, index, isSelected, cellHasFocus);