aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
diff options
context:
space:
mode:
authorAndrew Su <[email protected]>2010-12-01 16:14:51 -0500
committerAndrew Su <[email protected]>2010-12-01 16:14:51 -0500
commitc62f2432becc8dc15fd00a5645df44b152078f02 (patch)
treed38ef94e05d69d392e39fb517e2270363eafbafb /netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
parenta77dfee6288633aba7e9fa49b44354561c07f2ad (diff)
Add control panel (GUI) for modifying icedtea-web settings.
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java')
-rw-r--r--netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java b/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
index ce36154..c85c856 100644
--- a/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
+++ b/netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
@@ -230,17 +230,18 @@ public class CertificatePane extends JPanel {
tablePanel.add(tabbedPane, BorderLayout.CENTER);
tablePanel.add(buttonPanel, BorderLayout.SOUTH);
- JPanel closePanel = new JPanel(new BorderLayout());
- closePanel.setBorder(BorderFactory.createEmptyBorder(7,7,7,7));
- JButton closeButton = new JButton(R("ButClose"));
- closeButton.addActionListener(new CloseButtonListener());
- defaultFocusComponent = closeButton;
- closePanel.add(closeButton, BorderLayout.EAST);
-
main.add(certificateTypePanel, BorderLayout.NORTH);
main.add(tablePanel, BorderLayout.CENTER);
- main.add(closePanel, BorderLayout.SOUTH);
-
+
+ if (parent != null){
+ JPanel closePanel = new JPanel(new BorderLayout());
+ closePanel.setBorder(BorderFactory.createEmptyBorder(7,7,7,7));
+ JButton closeButton = new JButton(R("ButClose"));
+ closeButton.addActionListener(new CloseButtonListener());
+ defaultFocusComponent = closeButton;
+ closePanel.add(closeButton, BorderLayout.EAST);
+ main.add(closePanel, BorderLayout.SOUTH);
+ }
add(main);
}