Another try at icon alignment in field details.

This commit is contained in:
Doublestrike
2011-12-08 04:50:21 +00:00
parent 006b1b1c10
commit c85582fb76

View File

@@ -644,16 +644,14 @@ public class ViewField extends FRoundedPanel {
padding = 6;
iconAddress = s0;
this.setIcon(skin.getIcon(iconAddress, h - 2 * padding, h - 2 * padding));
this.setText(txt0);
this.setOpaque(false);
this.setForeground(ViewField.this.skin.getColor("text"));
this.setPreferredSize(this.labelSize);
this.setMaximumSize(this.labelSize);
this.setMinimumSize(this.labelSize);
this.setBorder(new LineBorder(new Color(0, 0, 0, 0), 1));
this.setHorizontalAlignment(SwingConstants.CENTER);
this.setVerticalAlignment(SwingConstants.BOTTOM);
this.setIcon(skin.getIcon(iconAddress, h - 2 * padding, h - 2 * padding));
// Increment counter and check for zebra. Set default BG
// so hover effects return to the same color.