]> source.dussan.org Git - gitblit.git/commitdiff
Certificate Authority UI tweaks to fit better on Ubuntu
authorJames Moger <james.moger@gitblit.com>
Sat, 24 Nov 2012 13:29:10 +0000 (08:29 -0500)
committerJames Moger <james.moger@gitblit.com>
Sat, 24 Nov 2012 13:29:10 +0000 (08:29 -0500)
src/com/gitblit/authority/GitblitAuthority.java
src/com/gitblit/authority/UserCertificatePanel.java

index 84162000d17abe912233866418bfa84bcfb6d7c8..5e8b30ec6b15beacb2f91cdecc58ebe1ffe9fb53 100644 (file)
@@ -272,6 +272,7 @@ public class GitblitAuthority extends JFrame {
                        tableModel.list = new ArrayList<UserCertificateModel>(map.values());\r
                        Collections.sort(tableModel.list);\r
                        tableModel.fireTableDataChanged();\r
+                       Utils.packColumns(table, Utils.MARGIN);\r
                }\r
        }\r
        \r
index 20727f6457efeb7db46cc67eac14d7a791f07a6e..6b1daee3b19b9a230e3aa29162761f5b9b6f5e78 100644 (file)
@@ -275,7 +275,7 @@ public abstract class UserCertificatePanel extends JPanel {
        \r
        private JPanel newFieldPanel(String label, Component c) {\r
                JLabel jlabel = new JLabel(label);\r
-               jlabel.setPreferredSize(new Dimension(150, 20));\r
+               jlabel.setPreferredSize(new Dimension(175, 20));\r
                JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));\r
                panel.add(jlabel);\r
                panel.add(c);\r
@@ -296,6 +296,7 @@ public abstract class UserCertificatePanel extends JPanel {
                \r
                tableModel.setUserCertificateModel(ucm);\r
                tableModel.fireTableDataChanged();\r
+               Utils.packColumns(table, Utils.MARGIN);\r
        }\r
        \r
        public void setEditable(boolean editable) {\r