File was renamed from src/com/gitblit/authority/NewWebCertificateDialog.java |
| | |
| | | import com.gitblit.utils.StringUtils;
|
| | | import com.toedter.calendar.JDateChooser;
|
| | |
|
| | | public class NewWebCertificateDialog extends JDialog {
|
| | | public class NewSSLCertificateDialog extends JDialog {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | |
| | | JTextField hostname;
|
| | | boolean isCanceled = true;
|
| | |
|
| | | public NewWebCertificateDialog(Frame owner, Date defaultExpiration) {
|
| | | public NewSSLCertificateDialog(Frame owner, Date defaultExpiration) {
|
| | | super(owner);
|
| | |
|
| | | setTitle(Translation.get("gb.newWebCertificate"));
|
| | | setTitle(Translation.get("gb.newSSLCertificate"));
|
| | |
|
| | | JPanel content = new JPanel(new BorderLayout(Utils.MARGIN, Utils.MARGIN)) {
|
| | | private static final long serialVersionUID = 1L;
|
| | |
| | | return Utils.INSETS;
|
| | | }
|
| | | };
|
| | | content.add(new HeaderPanel(Translation.get("gb.newWebCertificate"), "rosette_16x16.png"), BorderLayout.NORTH);
|
| | |
|
| | | expirationDate = new JDateChooser(defaultExpiration);
|
| | | hostname = new JTextField(20);
|
| | |
| | |
|
| | | panel.add(new JLabel(Translation.get("gb.expires")));
|
| | | panel.add(expirationDate);
|
| | |
|
| | | content.add(panel, BorderLayout.CENTER);
|
| | |
|
| | | JButton ok = new JButton(Translation.get("gb.ok"));
|
| | | ok.addActionListener(new ActionListener() {
|
| | |
| | | JPanel controls = new JPanel();
|
| | | controls.add(ok);
|
| | | controls.add(cancel);
|
| | | |
| | |
|
| | | content.add(panel, BorderLayout.CENTER);
|
| | | content.add(controls, BorderLayout.SOUTH);
|
| | |
|
| | | getContentPane().add(new HeaderPanel(Translation.get("gb.newSSLCertificate"), "rosette_16x16.png"), BorderLayout.NORTH);
|
| | | getContentPane().add(content, BorderLayout.CENTER);
|
| | | pack();
|
| | |
|