From: James Moger Date: Fri, 21 Oct 2011 21:34:56 +0000 (-0400) Subject: Tweaked manager indicators to match site layout X-Git-Tag: v0.7.0~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62031355525bef5ebbc04762e8736a22607f416f;p=gitblit.git Tweaked manager indicators to match site layout --- diff --git a/src/com/gitblit/client/IndicatorsRenderer.java b/src/com/gitblit/client/IndicatorsRenderer.java index e8be0ad2..3622db7a 100644 --- a/src/com/gitblit/client/IndicatorsRenderer.java +++ b/src/com/gitblit/client/IndicatorsRenderer.java @@ -16,7 +16,7 @@ package com.gitblit.client; import java.awt.Component; -import java.awt.GridLayout; +import java.awt.FlowLayout; import java.io.Serializable; import javax.swing.ImageIcon; @@ -55,7 +55,7 @@ public class IndicatorsRenderer extends JPanel implements TableCellRenderer, Ser private final ImageIcon federatedIcon; public IndicatorsRenderer() { - super(new GridLayout(1, 0, 1, 0)); + super(new FlowLayout(FlowLayout.RIGHT, 1, 0)); blankIcon = new ImageIcon(getClass().getResource("/blank.png")); pushIcon = new ImageIcon(getClass().getResource("/lock_go_16x16.png")); pullIcon = new ImageIcon(getClass().getResource("/lock_pull_16x16.png")); @@ -81,29 +81,21 @@ public class IndicatorsRenderer extends JPanel implements TableCellRenderer, Ser JLabel icon = new JLabel(tixIcon); tooltip.append(Translation.get("gb.tickets")).append("
"); add(icon); - } else { - add(new JLabel(blankIcon)); } if (model.useDocs) { JLabel icon = new JLabel(doxIcon); tooltip.append(Translation.get("gb.docs")).append("
"); add(icon); - } else { - add(new JLabel(blankIcon)); } if (model.isFrozen) { JLabel icon = new JLabel(frozenIcon); tooltip.append(Translation.get("gb.isFrozen")).append("
"); add(icon); - } else { - add(new JLabel(blankIcon)); } if (model.isFederated) { JLabel icon = new JLabel(federatedIcon); tooltip.append(Translation.get("gb.isFederated")).append("
"); add(icon); - } else { - add(new JLabel(blankIcon)); } switch (model.accessRestriction) {