From ca12058bbf0f2aa391254cbc6a5915323cdd611b Mon Sep 17 00:00:00 2001 From: James Moger Date: Sat, 24 Nov 2012 08:29:10 -0500 Subject: [PATCH] Certificate Authority UI tweaks to fit better on Ubuntu --- src/com/gitblit/authority/GitblitAuthority.java | 1 + src/com/gitblit/authority/UserCertificatePanel.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/gitblit/authority/GitblitAuthority.java b/src/com/gitblit/authority/GitblitAuthority.java index 84162000..5e8b30ec 100644 --- a/src/com/gitblit/authority/GitblitAuthority.java +++ b/src/com/gitblit/authority/GitblitAuthority.java @@ -272,6 +272,7 @@ public class GitblitAuthority extends JFrame { tableModel.list = new ArrayList(map.values()); Collections.sort(tableModel.list); tableModel.fireTableDataChanged(); + Utils.packColumns(table, Utils.MARGIN); } } diff --git a/src/com/gitblit/authority/UserCertificatePanel.java b/src/com/gitblit/authority/UserCertificatePanel.java index 20727f64..6b1daee3 100644 --- a/src/com/gitblit/authority/UserCertificatePanel.java +++ b/src/com/gitblit/authority/UserCertificatePanel.java @@ -275,7 +275,7 @@ public abstract class UserCertificatePanel extends JPanel { private JPanel newFieldPanel(String label, Component c) { JLabel jlabel = new JLabel(label); - jlabel.setPreferredSize(new Dimension(150, 20)); + jlabel.setPreferredSize(new Dimension(175, 20)); JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT)); panel.add(jlabel); panel.add(c); @@ -296,6 +296,7 @@ public abstract class UserCertificatePanel extends JPanel { tableModel.setUserCertificateModel(ucm); tableModel.fireTableDataChanged(); + Utils.packColumns(table, Utils.MARGIN); } public void setEditable(boolean editable) { -- 2.39.5