* force equals cell height for both lists, just in case
This commit is contained in:
parent
fc177c5fab
commit
eaa48c43ae
|
@ -6,6 +6,7 @@ import static net.filebot.util.ui.SwingUI.*;
|
||||||
|
|
||||||
import java.awt.AlphaComposite;
|
import java.awt.AlphaComposite;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
import java.awt.Dimension;
|
||||||
import java.awt.Graphics;
|
import java.awt.Graphics;
|
||||||
import java.awt.Graphics2D;
|
import java.awt.Graphics2D;
|
||||||
import java.awt.Insets;
|
import java.awt.Insets;
|
||||||
|
@ -55,6 +56,14 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
||||||
this.add(typeRenderer, "gap rel:push, hidemode 3");
|
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
|
@Override
|
||||||
public void configureListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
|
public void configureListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
|
||||||
super.configureListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
super.configureListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
||||||
|
|
Loading…
Reference in New Issue