aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2010-12-06 15:34:01 -0500
committerDeepak Bhole <[email protected]>2010-12-06 15:34:01 -0500
commit6ca1a9a369b10703da9af8f8a1ced0f3b02ae5c2 (patch)
tree568f8e454db94fa8abc896b46ce8cac7a9f3b74d /netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java
parent0d66adf24179c33bbdccaacc10d4c8a5f5e2cd54 (diff)
Fixed indentation and spacing for all .java files.
Added a new .settings directory which contains Eclipse preferences for code style.
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java')
-rw-r--r--netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java107
1 files changed, 53 insertions, 54 deletions
diff --git a/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java b/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java
index 6e5b56f..8d2919c 100644
--- a/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java
+++ b/netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java
@@ -55,64 +55,63 @@ import javax.swing.SwingConstants;
import net.sourceforge.jnlp.JNLPFile;
-
public class NotAllSignedWarningPane extends SecurityDialogPanel {
- public NotAllSignedWarningPane(SecurityWarningDialog x) {
- super(x);
- addComponents();
- }
+ public NotAllSignedWarningPane(SecurityWarningDialog x) {
+ super(x);
+ addComponents();
+ }
- /**
- * Creates the actual GUI components, and adds it to this panel
- */
- private void addComponents() {
- JNLPFile file = parent.getFile();
+ /**
+ * Creates the actual GUI components, and adds it to this panel
+ */
+ private void addComponents() {
+ JNLPFile file = parent.getFile();
- String topLabelText = R("SNotAllSignedSummary");
- String infoLabelText = R("SNotAllSignedDetail");
- String questionLabelText = R("SNotAllSignedQuestion");
+ String topLabelText = R("SNotAllSignedSummary");
+ String infoLabelText = R("SNotAllSignedDetail");
+ String questionLabelText = R("SNotAllSignedQuestion");
- ImageIcon icon = new ImageIcon((new sun.misc.Launcher()).getClassLoader().getResource("net/sourceforge/jnlp/resources/warning.png"));
- JLabel topLabel = new JLabel(htmlWrap(topLabelText), icon, SwingConstants.LEFT);
- topLabel.setFont(new Font(topLabel.getFont().toString(),
+ ImageIcon icon = new ImageIcon((new sun.misc.Launcher()).getClassLoader().getResource("net/sourceforge/jnlp/resources/warning.png"));
+ JLabel topLabel = new JLabel(htmlWrap(topLabelText), icon, SwingConstants.LEFT);
+ topLabel.setFont(new Font(topLabel.getFont().toString(),
Font.BOLD, 12));
- JPanel topPanel = new JPanel(new BorderLayout());
- topPanel.setBackground(Color.WHITE);
- topPanel.add(topLabel, BorderLayout.CENTER);
- topPanel.setPreferredSize(new Dimension(500,80));
- topPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
-
- JLabel infoLabel = new JLabel(htmlWrap(infoLabelText));
- JPanel infoPanel = new JPanel(new BorderLayout());
- infoPanel.add(infoLabel, BorderLayout.CENTER);
- infoPanel.setPreferredSize(new Dimension(500,100));
- infoPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
-
- JLabel questionLabel = new JLabel(htmlWrap(questionLabelText));
- JPanel questionPanel = new JPanel(new BorderLayout());
- questionPanel.add(questionLabel, BorderLayout.CENTER);
- questionPanel.setPreferredSize(new Dimension(500,100));
- questionPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
-
- //run and cancel buttons
- JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
-
- JButton run = new JButton(R("ButProceed"));
- JButton cancel = new JButton(R("ButCancel"));
- run.addActionListener(createSetValueListener(parent,0));
- cancel.addActionListener(createSetValueListener(parent, 1));
- initialFocusComponent = cancel;
- buttonPanel.add(run);
- buttonPanel.add(cancel);
- buttonPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
-
- //all of the above
- setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
- add(topPanel);
- add(infoPanel);
- add(questionPanel);
- add(buttonPanel);
-
- }
+ JPanel topPanel = new JPanel(new BorderLayout());
+ topPanel.setBackground(Color.WHITE);
+ topPanel.add(topLabel, BorderLayout.CENTER);
+ topPanel.setPreferredSize(new Dimension(500, 80));
+ topPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+
+ JLabel infoLabel = new JLabel(htmlWrap(infoLabelText));
+ JPanel infoPanel = new JPanel(new BorderLayout());
+ infoPanel.add(infoLabel, BorderLayout.CENTER);
+ infoPanel.setPreferredSize(new Dimension(500, 100));
+ infoPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+
+ JLabel questionLabel = new JLabel(htmlWrap(questionLabelText));
+ JPanel questionPanel = new JPanel(new BorderLayout());
+ questionPanel.add(questionLabel, BorderLayout.CENTER);
+ questionPanel.setPreferredSize(new Dimension(500, 100));
+ questionPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+
+ //run and cancel buttons
+ JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
+
+ JButton run = new JButton(R("ButProceed"));
+ JButton cancel = new JButton(R("ButCancel"));
+ run.addActionListener(createSetValueListener(parent, 0));
+ cancel.addActionListener(createSetValueListener(parent, 1));
+ initialFocusComponent = cancel;
+ buttonPanel.add(run);
+ buttonPanel.add(cancel);
+ buttonPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+
+ //all of the above
+ setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
+ add(topPanel);
+ add(infoPanel);
+ add(questionPanel);
+ add(buttonPanel);
+
+ }
}