From c85582fb762ca66b4d893ca692fd0923ea83d444 Mon Sep 17 00:00:00 2001 From: Doublestrike Date: Thu, 8 Dec 2011 04:50:21 +0000 Subject: [PATCH] Another try at icon alignment in field details. --- src/main/java/forge/view/match/ViewField.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/forge/view/match/ViewField.java b/src/main/java/forge/view/match/ViewField.java index 734f14e9fa7..a4b8cbd51e4 100644 --- a/src/main/java/forge/view/match/ViewField.java +++ b/src/main/java/forge/view/match/ViewField.java @@ -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.