/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.autoplot.scriptconsole; /** * little panel with "install in tools folder" prompt * @author jbf */ public class MakeToolPanel extends javax.swing.JPanel { /** * Creates new form MakeToolPanel */ public MakeToolPanel() { initComponents(); } public boolean isInstall() { return toolsCB.isSelected(); } /** * 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") // //GEN-BEGIN:initComponents private void initComponents() { toolsCB = new javax.swing.JCheckBox(); jLabel2 = new javax.swing.JLabel(); toolsCB.setText("Install in tools folder and menu"); toolsCB.setToolTipText("The script will be added to the Autoplot \"Tools\" menu"); jLabel2.setText("Make sure the script does not contain malicious code."); jLabel2.setToolTipText("Scripts are run with your privileges, so be careful
\nto make sure scripts are coming from a trusted source
\nand do not contain code that would harm your files."); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(toolsCB)) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(toolsCB) .addGap(11, 11, 11) .addComponent(jLabel2) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); }//
//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel2; private javax.swing.JCheckBox toolsCB; // End of variables declaration//GEN-END:variables }