| | |
| | |
|
| | | setTitle(Translation.get("gb.viewCertificate"));
|
| | |
|
| | | JPanel content = new JPanel(new BorderLayout(5, 5)) { |
| | | JPanel content = new JPanel(new BorderLayout(Utils.MARGIN, Utils.MARGIN)) { |
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | @Override
|
| | |
| | | return Utils.INSETS;
|
| | | }
|
| | | };
|
| | | content.add(new HeaderPanel("certificiate", "rosette_16x16.png"), BorderLayout.NORTH);
|
| | |
|
| | | DateFormat df = DateFormat.getDateTimeInstance();
|
| | |
|
| | | int l1 = 15;
|
| | | int l2 = 25;
|
| | | int l3 = 45;
|
| | | JPanel panel = new JPanel(new GridLayout(0, 1, 0, 10));
|
| | | JPanel panel = new JPanel(new GridLayout(0, 1, 0, 2*Utils.MARGIN));
|
| | | panel.add(newField(Translation.get("gb.version"), "" + cert.getVersion(), 3));
|
| | | panel.add(newField(Translation.get("gb.subject"), cert.getSubjectDN().getName(), l3));
|
| | | panel.add(newField(Translation.get("gb.issuer"), cert.getIssuerDN().getName(), l3));
|
| | |
| | |
|
| | | content.add(controls, BorderLayout.SOUTH);
|
| | |
|
| | | getContentPane().add(new HeaderPanel(Translation.get("gb.certificate"), "rosette_16x16.png"), BorderLayout.NORTH);
|
| | | getContentPane().add(content, BorderLayout.CENTER);
|
| | | pack();
|
| | |
|
| | |
| | | }
|
| | |
|
| | | private JPanel newField(String label, String value, int cols) {
|
| | | JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 10, 0));
|
| | | JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 2*Utils.MARGIN, 0));
|
| | | JLabel lbl = new JLabel(label);
|
| | | lbl.setHorizontalAlignment(SwingConstants.RIGHT);
|
| | | lbl.setPreferredSize(new Dimension(125, 20));
|