diff options
author | Adam Domurad <[email protected]> | 2013-04-12 10:04:36 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-04-12 10:04:36 -0400 |
commit | 792944d591f4973d2e493e1df7ab83ce5a9c5d25 (patch) | |
tree | 368f83bf7068088cf7a76ac1d8ecb6ab350dbce4 /netx/net | |
parent | 609a16a7bb3c947b9d8059081b1dd2503d3d30ca (diff) |
Clean-up generated code.
Diffstat (limited to 'netx/net')
-rw-r--r-- | netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java b/netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java index 2bb2380..e0da90a 100644 --- a/netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java +++ b/netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java @@ -84,7 +84,7 @@ public class ExtendedAppletSecurityHelp extends javax.swing.JDialog implements H private void initComponents() { - jScrollPane1 = new javax.swing.JScrollPane(); + scrollPane = new javax.swing.JScrollPane(); mainHtmlPane = new javax.swing.JEditorPane(); mainPanel = new javax.swing.JPanel(); niceSeparator = new javax.swing.JSeparator(); @@ -97,23 +97,23 @@ public class ExtendedAppletSecurityHelp extends javax.swing.JDialog implements H getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS)); mainHtmlPane.setContentType("text/html"); mainHtmlPane.setEditable(false); - jScrollPane1.setViewportView(mainHtmlPane); - getContentPane().add(jScrollPane1); - javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(mainPanel); - mainPanel.setLayout(jPanel4Layout); - jPanel4Layout.setHorizontalGroup( - jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + scrollPane.setViewportView(mainHtmlPane); + getContentPane().add(scrollPane); + javax.swing.GroupLayout mainLayout = new javax.swing.GroupLayout(mainPanel); + mainPanel.setLayout(mainLayout); + mainLayout.setHorizontalGroup( + mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 485, Short.MAX_VALUE) - .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel4Layout.createSequentialGroup() + .addGroup(mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(mainLayout.createSequentialGroup() .addGap(0, 217, Short.MAX_VALUE) .addComponent(niceSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 218, Short.MAX_VALUE)))); - jPanel4Layout.setVerticalGroup( - jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + mainLayout.setVerticalGroup( + mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 10, Short.MAX_VALUE) - .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(jPanel4Layout.createSequentialGroup() + .addGroup(mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(mainLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(niceSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))); @@ -124,14 +124,14 @@ public class ExtendedAppletSecurityHelp extends javax.swing.JDialog implements H homeButton.setText(Translator.R("SPLASHHome")); homeButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { - jButton2ActionPerformed(evt); + goToIntroSection(evt); } }); navigationPanel.add(homeButton); homeAndDialogueButton.setText(Translator.R("APPEXTSEChelpHomeDialogue")); homeAndDialogueButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { - jButton1ActionPerformed(evt); + goToDialogueSection(evt); } }); closeButton.addActionListener(new java.awt.event.ActionListener() { @@ -149,14 +149,12 @@ public class ExtendedAppletSecurityHelp extends javax.swing.JDialog implements H pack(); } - private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { - // TODO add your handling code here: + private void goToIntroSection(java.awt.event.ActionEvent evt) { mainHtmlPane.setText(Translator.R("APPEXTSEChelp")); mainHtmlPane.setCaretPosition(1); } - private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { - // TODO add your handling code here: + private void goToDialogueSection(java.awt.event.ActionEvent evt) { mainHtmlPane.setText(Translator.R("APPEXTSEChelp")); mainHtmlPane.scrollToReference("dialogue"); } @@ -177,6 +175,6 @@ public class ExtendedAppletSecurityHelp extends javax.swing.JDialog implements H private JPanel navigationPanel; private JPanel closePanel; private JPanel mainPanel; - private JScrollPane jScrollPane1; + private JScrollPane scrollPane; private JSeparator niceSeparator; } |