* force equals cell height for both lists, just in case

This commit is contained in:
Reinhard Pointner 2014-08-06 18:02:18 +00:00
parent fc177c5fab
commit eaa48c43ae
1 changed files with 9 additions and 0 deletions

View File

@ -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);