|
@@ -23,7 +23,9 @@ public class ObfuscateCustomizerPanel extends javax.swing.JPanel implements Acti
|
|
|
|
|
|
private ProjectExtensionProperties properties;
|
|
|
|
|
|
- /** Creates new form LwjglAppletCustomizerPanel */
|
|
|
+ /**
|
|
|
+ * Creates new form LwjglAppletCustomizerPanel
|
|
|
+ */
|
|
|
public ObfuscateCustomizerPanel(ProjectExtensionProperties properties) {
|
|
|
this.properties = properties;
|
|
|
initComponents();
|
|
@@ -38,6 +40,8 @@ public class ObfuscateCustomizerPanel extends javax.swing.JPanel implements Acti
|
|
|
} else {
|
|
|
jCheckBox1.setSelected(false);
|
|
|
}
|
|
|
+ String props = properties.getProperty("obfuscate.options");
|
|
|
+ jTextArea1.setText(props);
|
|
|
}
|
|
|
|
|
|
private void saveProperties() {
|
|
@@ -46,32 +50,47 @@ public class ObfuscateCustomizerPanel extends javax.swing.JPanel implements Acti
|
|
|
} else {
|
|
|
properties.setProperty("obfuscate", "");
|
|
|
}
|
|
|
+ properties.setProperty("obfuscate.options", jTextArea1.getText());
|
|
|
}
|
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
saveProperties();
|
|
|
}
|
|
|
|
|
|
- /** This method is called from within the constructor to
|
|
|
- * initialize the form.
|
|
|
- * WARNING: Do NOT modify this code. The content of this method is
|
|
|
- * always regenerated by the Form Editor.
|
|
|
+ /**
|
|
|
+ * This method is called from within the constructor to initialize the form.
|
|
|
+ * WARNING: Do NOT modify this code. The content of this method is always
|
|
|
+ * regenerated by the Form Editor.
|
|
|
*/
|
|
|
@SuppressWarnings("unchecked")
|
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
|
|
private void initComponents() {
|
|
|
|
|
|
jCheckBox1 = new javax.swing.JCheckBox();
|
|
|
+ jScrollPane1 = new javax.swing.JScrollPane();
|
|
|
+ jTextArea1 = new javax.swing.JTextArea();
|
|
|
+ jLabel1 = new javax.swing.JLabel();
|
|
|
|
|
|
jCheckBox1.setText(org.openide.util.NbBundle.getMessage(ObfuscateCustomizerPanel.class, "ObfuscateCustomizerPanel.jCheckBox1.text")); // NOI18N
|
|
|
|
|
|
+ jTextArea1.setColumns(20);
|
|
|
+ jTextArea1.setRows(5);
|
|
|
+ jScrollPane1.setViewportView(jTextArea1);
|
|
|
+
|
|
|
+ jLabel1.setText(org.openide.util.NbBundle.getMessage(ObfuscateCustomizerPanel.class, "ObfuscateCustomizerPanel.jLabel1.text")); // NOI18N
|
|
|
+
|
|
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
|
|
this.setLayout(layout);
|
|
|
layout.setHorizontalGroup(
|
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
.addContainerGap()
|
|
|
- .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)
|
|
|
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 366, Short.MAX_VALUE)
|
|
|
+ .addComponent(jCheckBox1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
|
+ .addGroup(layout.createSequentialGroup()
|
|
|
+ .addComponent(jLabel1)
|
|
|
+ .addGap(0, 0, Short.MAX_VALUE)))
|
|
|
.addContainerGap())
|
|
|
);
|
|
|
layout.setVerticalGroup(
|
|
@@ -79,10 +98,17 @@ public class ObfuscateCustomizerPanel extends javax.swing.JPanel implements Acti
|
|
|
.addGroup(layout.createSequentialGroup()
|
|
|
.addContainerGap()
|
|
|
.addComponent(jCheckBox1)
|
|
|
- .addContainerGap(241, Short.MAX_VALUE))
|
|
|
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
|
+ .addComponent(jLabel1)
|
|
|
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
+ .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 201, Short.MAX_VALUE)
|
|
|
+ .addContainerGap())
|
|
|
);
|
|
|
}// </editor-fold>//GEN-END:initComponents
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
|
private javax.swing.JCheckBox jCheckBox1;
|
|
|
+ private javax.swing.JLabel jLabel1;
|
|
|
+ private javax.swing.JScrollPane jScrollPane1;
|
|
|
+ private javax.swing.JTextArea jTextArea1;
|
|
|
// End of variables declaration//GEN-END:variables
|
|
|
}
|