From: James Moger Date: Sat, 24 Nov 2012 13:29:10 +0000 (-0500) Subject: Certificate Authority UI tweaks to fit better on Ubuntu X-Git-Tag: v1.2.0~77 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca12058bbf0f2aa391254cbc6a5915323cdd611b;p=gitblit.git Certificate Authority UI tweaks to fit better on Ubuntu --- 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) {