Java Examples for javax.swing.DefaultComboBoxModel

The following java examples will help you to understand the usage of javax.swing.DefaultComboBoxModel. These source code samples are taken from different open source projects.

Example 1
Project: goworks-master  File: CodeGeneratorVisualPanel1.java View source code
/**
     * 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({ "rawtypes", "unchecked", "Convert2Diamond" })
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    javax.swing.JLabel jLabel1 = new javax.swing.JLabel();
    javax.swing.JLabel jLabel2 = new javax.swing.JLabel();
    javax.swing.JLabel jLabel3 = new javax.swing.JLabel();
    txtOutputDirectory = new javax.swing.JTextField();
    txtLibDirectory = new javax.swing.JTextField();
    cmbTargetLanguage = new javax.swing.JComboBox<String>();
    btnBrowseOutputDirectory = new javax.swing.JButton();
    btnBrowseLibDirectory = new javax.swing.JButton();
    // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CodeGeneratorVisualPanel1.class, "CodeGeneratorVisualPanel1.jLabel1.text"));
    // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CodeGeneratorVisualPanel1.class, "CodeGeneratorVisualPanel1.jLabel2.text"));
    // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(CodeGeneratorVisualPanel1.class, "CodeGeneratorVisualPanel1.jLabel3.text"));
    txtOutputDirectory.setMinimumSize(new java.awt.Dimension(80, 20));
    cmbTargetLanguage.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Java", "Java (sharwell/optimized)", "Python 2", "Python 3" }));
    cmbTargetLanguage.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmbTargetLanguageActionPerformed(evt);
        }
    });
    // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(btnBrowseOutputDirectory, org.openide.util.NbBundle.getMessage(CodeGeneratorVisualPanel1.class, "CodeGeneratorVisualPanel1.btnBrowseOutputDirectory.text"));
    btnBrowseOutputDirectory.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnBrowseOutputDirectoryActionPerformed(evt);
        }
    });
    // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(btnBrowseLibDirectory, org.openide.util.NbBundle.getMessage(CodeGeneratorVisualPanel1.class, "CodeGeneratorVisualPanel1.btnBrowseLibDirectory.text"));
    btnBrowseLibDirectory.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnBrowseLibDirectoryActionPerformed(evt);
        }
    });
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel1).addComponent(jLabel3).addComponent(jLabel2)).addGap(10, 10, 10).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(txtOutputDirectory, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(txtLibDirectory).addComponent(cmbTargetLanguage, 0, 169, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(btnBrowseOutputDirectory, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(btnBrowseLibDirectory, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnBrowseOutputDirectory).addComponent(txtOutputDirectory, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel1)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnBrowseLibDirectory).addComponent(txtLibDirectory, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel3)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmbTargetLanguage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel2)).addGap(0, 222, Short.MAX_VALUE)));
}
Example 2
Project: korsakow-editor-master  File: SnuResourceView.java View source code
@Override
protected void createUIComponents() {
    // hack until ui is consistent accross the whole app
    setBackground(UIManager.getColor("window2"));
    setOpaque(true);
    UIUtil.runUITaskLater(new Runnable() {

        public void run() {
            if (// timing issues...
            getTopLevelAncestor() != null)
                ((JFrame) getTopLevelAncestor()).getContentPane().setBackground(getBackground());
        }
    });
    // /hack
    super.createUIComponents();
    IUIFactory uifac = UIFactory.getFactory();
    //		setLayout(null);
    removeAll();
    JPanel dummyPanel = new KLayoutPanel();
    mainPanel = new KLayoutPanel();
    add(mainPanel);
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    VerticalFlowLayout vlayout = new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0);
    vlayout.setMaximizeOtherDimension(true);
    mainPanel.setLayout(vlayout);
    JPanel snuPanel = new KLayoutPanel();
    JPanel keywordPanel = new KLayoutPanel();
    JPanel previewPanel = new KLayoutPanel();
    dummyPanel.add(maxLinksCombo = uifac.createComboBox("maxLinksComboBox", maxLinksComboModel = new DefaultComboBoxModel(MAXLINKS_CHOICES)));
    JPanel snuPanelSizer = uifac.customComponent("snuSettingPanelSizer", new JPanel());
    //This causes the snuPanel to stretch nicely. I make it invisible not to interfere with the real widgets.
    //This presumes that the size of an invisible panel is considered when sizing snuPanel.
    snuPanelSizer.setVisible(false);
    snuPanel.add(snuPanelSizer);
    snuPanel.add(uifac.createLabel("backgroundSoundLabel", LanguageBundle.getString("snuresourceview.backgroundsound.label")));
    snuPanel.add(backgroundSoundCombo = uifac.createComboBox("backgroundSoundPanel", new ResourceComboBoxModel(false), new ResourceDOComboBoxRenderer()));
    backgroundSoundCombo.setEditable(false);
    //		snuPanel.add(uifac.createLabel("backgroundSoundLoopLabel", LanguageBundle.getString("snuresourceview.mainmediapanel.backgroundsoundloop.label")));
    snuPanel.add(backgroundSoundLoopCheck = uifac.createCheckBox("backgroundSoundLoopCheck", LanguageBundle.getString("snuresourceview.backgroundsound.loop.label")));
    backgroundSoundLoopCheck.setHorizontalTextPosition(JCheckBox.LEFT);
    snuPanel.add(uifac.createLabel("livesLabel", LanguageBundle.getString("snuresourceview.lives.label")));
    snuPanel.add(livesCombo = uifac.createComboBox("livesComboBox", livesComboModel = new DefaultComboBoxModel(LIVES_CHOICES)));
    livesCombo.setEditable(true);
    JPanel bottomPanel = new JPanel();
    bottomPanel.setBounds(10, 95, 500, 23);
    snuPanel.add(bottomPanel);
    bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.X_AXIS));
    //		bottomPanel.setLayout(new HorizontalFlowLayout(HorizontalFlowLayout.LEFT));
    bottomPanel.add(uifac.createLabel("ratingLabel", LanguageBundle.getString("snuresourceview.rating.label")));
    bottomPanel.add(Box.createHorizontalStrut(5));
    ratingSlider = uifac.createSlider("ratingSlider", new DefaultBoundedRangeModel(0, 0, 0, 100));
    ratingSlider.addChangeListener(new ChangeListener() {

        public void stateChanged(ChangeEvent event) {
            ratingField.setText(String.format("%2.2f", (RatingCalculator.calculate(ratingSlider.getValue() / 100.0f))));
        }
    });
    ratingField = uifac.createLabel("ratingField");
    ratingField.setHorizontalAlignment(JLabel.CENTER);
    ratingField.setBorder(BorderFactory.createLineBorder(Color.gray));
    JPanel ratingBorder = new JPanel(new HorizontalFlowLayout(HorizontalFlowLayout.LEFT, 0, 0));
    ratingBorder.setLayout(new BoxLayout(ratingBorder, BoxLayout.X_AXIS));
    ratingBorder.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.gray), BorderFactory.createEmptyBorder(3, 5, 3, 0)));
    bottomPanel.add(ratingBorder);
    ratingBorder.add(ratingSlider);
    ratingBorder.add(ratingField);
    bottomPanel.add(Box.createHorizontalStrut(100));
    bottomPanel.add(Box.createHorizontalGlue());
    //		bottomPanel.add(ratingBorder = uifac.customComponent("ratingBorder", new JPanel()));
    //		ratingBorder.setBorder(BorderFactory.createLineBorder(Color.gray));
    ratingSlider.setValue(10);
    JPanel topPanel = new JPanel();
    topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
    snuPanel.add(topPanel);
    topPanel.setBounds(10, 14, 500, 23);
    topPanel.add(uifac.createLabel("startingSnuLabel", LanguageBundle.getString("snuresourceview.startingsnu.label")));
    topPanel.add(Box.createHorizontalStrut(5));
    topPanel.add(startingSnuCheck = uifac.createCheckBox("startingSnuCheckBox"));
    topPanel.add(Box.createHorizontalStrut(20));
    topPanel.add(uifac.createLabel("endingSnuLabel", LanguageBundle.getString("snuresourceview.endingsnu.label")));
    topPanel.add(Box.createHorizontalStrut(5));
    topPanel.add(endingSnuCheck = new JCheckBox());
    topPanel.add(Box.createHorizontalStrut(20));
    topPanel.add(new JLabel(LanguageBundle.getString("snuresourceview.mainmediapanel.loop.label")));
    topPanel.add(Box.createHorizontalStrut(5));
    topPanel.add(videoLoopCheck = new JCheckBox());
    topPanel.add(Box.createHorizontalGlue());
    snuPanel.add(uifac.createLabel("interfaceLabel", LanguageBundle.getString("snuresourceview.interface.label")));
    snuPanel.add(interfaceCombo = uifac.createComboBox("interfacePanel", new ResourceComboBoxModel(true), new ResourceDOComboBoxRenderer()));
    snuPanel.add(uifac.createLabel("insertTextLabel", LanguageBundle.getString("snuresourceview.inserttext.label")));
    snuPanel.add(insertTextField = uifac.createTextField("insertTextField"));
    JPanel keywordPanelSizer = uifac.customComponent("keywordPanelSizer", new JPanel());
    keywordPanelSizer.setVisible(false);
    keywordPanel.add(keywordPanelSizer);
    codeTable = new CodeTable();
    JScrollPane codeScroll = uifac.customComponent("k3Rules", new JScrollPane(codeTable));
    codeScroll.setPreferredSize(new Dimension(600, 200));
    // setting the border results in the LaF's default border, not no border
    codeScroll.setBorder(BorderFactory.createEmptyBorder());
    // stop cell editing when clicking outside the table bounds
    codeScroll.addMouseListener(new MouseAdapter() {

        @Override
        public void mousePressed(MouseEvent event) {
            if (codeTable.getCellEditor() != null)
                codeTable.getCellEditor().stopCellEditing();
        }
    });
    keywordPanel.add(uifac.createLabel("k3RulesLabel", LanguageBundle.getString("snuresourceview.outkeywords.label"), UIResourceManager.getIcon(UIResourceManager.ICON_SNU_OUT)));
    keywordPanel.add(codeScroll);
    keywordPanel.add(inKeywordLabel);
    keywordPanel.add(inKeywordBox);
    inKeywordBox.setFocusBackgroundColor(new Color(0xee1b23));
    inKeywordBox.setFocusForegroundColor(Color.white);
    inKeywordBox.setBorder(new JTextField().getBorder());
    JPanel previewPanelSizer = uifac.customComponent("previewPanelSizer", new JPanel());
    previewPanelSizer.setVisible(false);
    previewPanel.add(previewPanelSizer);
    previewPanel.add(uifac.createLabel("previewMediaLabel", LanguageBundle.getString("snuresourceview.previewmedia.label")));
    previewPanel.add(previewMediaCombo = uifac.createComboBox("previewMediaCombo", new ResourceComboBoxModel(true), new ResourceDOComboBoxRenderer()));
    previewMediaCombo.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent event) {
            setPreviewMedia(getPreviewMedia());
        }
    });
    previewPanel.add(previewMediaPanel = uifac.customComponent("previewMediaPanel", new NewMediaPanel()));
    previewPanel.add(uifac.createLabel("previewTextLabel", LanguageBundle.getString("snuresourceview.previewtext.label")));
    previewPanel.add(previewTextField = uifac.createTextField("previewTextField"));
    mainPanel.add(nameField);
    mainPanel.add(mainMediaPanel = uifac.customComponent("mainMedia", new NewMediaPanel()));
    //		mainPanel.add(mainSplitPane = uifac.createSplitPane("mainSplitPane"));
    mainPanel.add(keywordCollapse = uifac.customComponent("keywordPanel", new KCollapsiblePane(LanguageBundle.getString("resourceview.tab.keywords.label"), keywordPanel)));
    mainPanel.add(previewCollapse = uifac.customComponent("previewPanel", new KCollapsiblePane(LanguageBundle.getString("snuresourceview.tab.preview.label"), previewPanel)));
    mainPanel.add(snuCollapse = uifac.customComponent("snuPanel", new KCollapsiblePane(LanguageBundle.getString("snuresourceview.snusettings.label"), snuPanel)));
    UIUtil.runUITaskLater(new // this is run later because we set the windows' size based on its panel's preferred size and we want the full size
    Runnable() {

        public void run() {
            snuCollapse.setExpanded(PreferencesManager.getPreferences(SnuResourceView.class).getBoolean("snuCollapse", true));
            keywordCollapse.setExpanded(PreferencesManager.getPreferences(SnuResourceView.class).getBoolean("keywordCollapse", true));
            previewCollapse.setExpanded(PreferencesManager.getPreferences(SnuResourceView.class).getBoolean("previewCollapse", true));
        }
    });
}
Example 3
Project: Desktop-master  File: MLinkController.java View source code
@Override
protected void createArrowLinkPopup(final ConnectorModel link, final JComponent arrowLinkPopup) {
    super.createArrowLinkPopup(link, arrowLinkPopup);
    addAction(arrowLinkPopup, new RemoveConnectorAction(this, link));
    addSeparator(arrowLinkPopup);
    addAction(arrowLinkPopup, new ConnectorColorAction(this, link));
    final JSlider transparencySlider = new JSlider(20, 255, link.getAlpha());
    transparencySlider.setMinorTickSpacing(20);
    transparencySlider.setPaintTicks(true);
    transparencySlider.setSnapToTicks(true);
    transparencySlider.setPaintTrack(true);
    addPopupComponent(arrowLinkPopup, TextUtils.getText("edit_transparency_label"), transparencySlider);
    addSeparator(arrowLinkPopup);
    AFreeplaneAction[] arrowActions = new AFreeplaneAction[] { new ChangeConnectorArrowsAction(this, "none", link, ArrowType.NONE, ArrowType.NONE), new ChangeConnectorArrowsAction(this, "forward", link, ArrowType.NONE, ArrowType.DEFAULT), new ChangeConnectorArrowsAction(this, "backward", link, ArrowType.DEFAULT, ArrowType.NONE), new ChangeConnectorArrowsAction(this, "both", link, ArrowType.DEFAULT, ArrowType.DEFAULT) };
    final JComboBox connectorArrows = createActionBox(arrowActions);
    addPopupComponent(arrowLinkPopup, TextUtils.getText("connector_arrows"), connectorArrows);
    final boolean twoNodesConnector = !link.getSource().equals(link.getTarget());
    AFreeplaneAction[] shapeActions;
    if (twoNodesConnector) {
        shapeActions = new AFreeplaneAction[] { new ChangeConnectorShapeAction(this, link, Shape.CUBIC_CURVE), new ChangeConnectorShapeAction(this, link, Shape.LINE), new ChangeConnectorShapeAction(this, link, Shape.LINEAR_PATH), new ChangeConnectorShapeAction(this, link, Shape.EDGE_LIKE) };
    } else {
        shapeActions = new AFreeplaneAction[] { new ChangeConnectorShapeAction(this, link, Shape.CUBIC_CURVE), new ChangeConnectorShapeAction(this, link, Shape.LINE), new ChangeConnectorShapeAction(this, link, Shape.LINEAR_PATH) };
    }
    final JComboBox connectorShapes = createActionBox(shapeActions);
    addPopupComponent(arrowLinkPopup, TextUtils.getText("connector_shapes"), connectorShapes);
    AFreeplaneAction[] dashActions = new AFreeplaneAction[] { new ChangeConnectorDashAction(this, link, null), new ChangeConnectorDashAction(this, link, new int[] { 3, 3 }), new ChangeConnectorDashAction(this, link, new int[] { 7, 7 }), new ChangeConnectorDashAction(this, link, new int[] { 2, 7 }), new ChangeConnectorDashAction(this, link, new int[] { 2, 7, 7, 7 }) };
    final JComboBox connectorDashes = createActionBox(dashActions);
    addPopupComponent(arrowLinkPopup, TextUtils.getText("connector_lines"), connectorDashes);
    final SpinnerNumberModel widthModel = new SpinnerNumberModel(link.getWidth(), 1, 32, 1);
    final JSpinner widthSpinner = new JSpinner(widthModel);
    addPopupComponent(arrowLinkPopup, TextUtils.getText("edit_width_label"), widthSpinner);
    addSeparator(arrowLinkPopup);
    {
        final GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
        final String[] envFonts = gEnv.getAvailableFontFamilyNames();
        DefaultComboBoxModel fonts = new DefaultComboBoxModel(envFonts);
        fonts.setSelectedItem(link.getLabelFontFamily());
        JComboBox fontBox = new JComboBox(fonts);
        fontBox.setEditable(false);
        addPopupComponent(arrowLinkPopup, TextUtils.getText("edit_label_font_family"), fontBox);
        fontBox.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                final Object item = e.getItem();
                if (item != null)
                    setLabelFontFamily(link, item.toString());
            }
        });
    }
    {
        final Integer[] sizes = { 4, 6, 8, 10, 12, 14, 16, 18, 24, 36 };
        DefaultComboBoxModel sizesModel = new DefaultComboBoxModel(sizes);
        sizesModel.setSelectedItem(link.getLabelFontSize());
        JComboBox sizesBox = new JComboBox(sizesModel);
        sizesBox.setEditable(true);
        addPopupComponent(arrowLinkPopup, TextUtils.getText("edit_label_font_size"), sizesBox);
        sizesBox.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (arrowLinkPopup.isVisible())
                    arrowLinkPopup.setVisible(false);
                final Object item = e.getItem();
                if (item != null) {
                    final int size;
                    if (item instanceof Integer)
                        size = (Integer) item;
                    else {
                        try {
                            size = Integer.valueOf(item.toString());
                            if (size <= 0)
                                return;
                        } catch (NumberFormatException ex) {
                            return;
                        }
                    }
                    setLabelFontSize(link, size);
                }
            }
        });
    }
    final JTextArea sourceLabelEditor;
    sourceLabelEditor = new JTextArea(link.getSourceLabel());
    addTextEditor(arrowLinkPopup, "edit_source_label", sourceLabelEditor);
    final JTextArea middleLabelEditor = new JTextArea(link.getMiddleLabel());
    addTextEditor(arrowLinkPopup, "edit_middle_label", middleLabelEditor);
    final JTextArea targetLabelEditor;
    targetLabelEditor = new JTextArea(link.getTargetLabel());
    addTextEditor(arrowLinkPopup, "edit_target_label", targetLabelEditor);
    arrowLinkPopup.addHierarchyListener(new HierarchyListener() {

        private Component focusOwner;

        private Window dialog;

        public void hierarchyChanged(HierarchyEvent e) {
            final JComponent component = (JComponent) e.getComponent();
            if (component.isShowing()) {
                if (dialog == null) {
                    dialog = SwingUtilities.getWindowAncestor(component);
                    dialog.addWindowListener(new WindowAdapter() {

                        @Override
                        public void windowClosing(WindowEvent e) {
                            component.putClientProperty(CANCEL, Boolean.TRUE);
                        }
                    });
                }
                if (focusOwner == null)
                    focusOwner = FocusManager.getCurrentManager().getFocusOwner();
                return;
            }
            if (focusOwner == null || !focusOwner.isShowing())
                return;
            focusOwner.requestFocus();
            if (Boolean.TRUE.equals(component.getClientProperty(CANCEL))) {
                return;
            }
            final IMapSelection selection = Controller.getCurrentController().getSelection();
            if (selection == null || selection.getSelected() == null)
                return;
            setSourceLabel(link, sourceLabelEditor.getText());
            setTargetLabel(link, targetLabelEditor.getText());
            setMiddleLabel(link, middleLabelEditor.getText());
            setAlpha(link, transparencySlider.getValue());
            setWidth(link, widthModel.getNumber().intValue());
        }
    });
}
Example 4
Project: Joustick-master  File: JoySettings.java View source code
/** 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")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    jComboBox1 = new javax.swing.JComboBox();
    jComboBox2 = new javax.swing.JComboBox();
    jComboBox3 = new javax.swing.JComboBox();
    jComboBox4 = new javax.swing.JComboBox();
    jComboBox5 = new javax.swing.JComboBox();
    jComboBox6 = new javax.swing.JComboBox();
    jComboBox7 = new javax.swing.JComboBox();
    jComboBox8 = new javax.swing.JComboBox();
    jComboBox9 = new javax.swing.JComboBox();
    jComboBox10 = new javax.swing.JComboBox();
    jComboBox11 = new javax.swing.JComboBox();
    jComboBox12 = new javax.swing.JComboBox();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jLabel12 = new javax.swing.JLabel();
    jSlider1 = new javax.swing.JSlider();
    jLabel13 = new javax.swing.JLabel();
    jComboBox13 = new javax.swing.JComboBox();
    jComboBox14 = new javax.swing.JComboBox();
    jComboBox15 = new javax.swing.JComboBox();
    jComboBox16 = new javax.swing.JComboBox();
    jComboBox17 = new javax.swing.JComboBox();
    jComboBox18 = new javax.swing.JComboBox();
    jComboBox19 = new javax.swing.JComboBox();
    jComboBox20 = new javax.swing.JComboBox();
    jComboBox21 = new javax.swing.JComboBox();
    jComboBox22 = new javax.swing.JComboBox();
    jComboBox23 = new javax.swing.JComboBox();
    jComboBox24 = new javax.swing.JComboBox();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Ayarlar");
    setAlwaysOnTop(true);
    jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboBox1ActionPerformed(evt);
        }
    });
    jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox4.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboBox4ActionPerformed(evt);
        }
    });
    jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox11.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox12.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jLabel1.setText("Üçgen :");
    jLabel2.setText("Yuvarlak : ");
    jLabel3.setText("Çarpı : ");
    jLabel4.setText("Kare : ");
    jLabel5.setText("Sol Üst : ");
    jLabel6.setText("Sağ Üst : ");
    jLabel7.setText("Sol Alt : ");
    jLabel8.setText("Sağ Alt : ");
    jLabel9.setText("Select : ");
    jLabel10.setText("Start : ");
    jLabel11.setText("Sol joystick : ");
    jLabel12.setText("Sağ Joystick : ");
    jSlider1.setMaximum(10);
    jSlider1.setPaintLabels(true);
    jSlider1.setPaintTicks(true);
    jLabel13.setText("İmleç Hızı : ");
    jComboBox13.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox14.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox14.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboBox14ActionPerformed(evt);
        }
    });
    jComboBox15.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox16.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox17.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox18.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox19.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox20.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox21.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox22.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox23.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jComboBox24.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nothing", "Left Click", "Right Click", "Enter", "Back Space", "Tab", "Space", "Escape", "Pause", "Alt", "Ctrl", "Shift", "Home", "Page Up", "Page Down", "Caps Lock", "Num Lock", "Start Menu", "Task Manager", "Print Screen", "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "İ", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "Ş", "T", "U", "Ü", "V", "W", "Y", "X", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }));
    jButton1.setText("Kaydet");
    jButton1.setVerifyInputWhenFocusTarget(false);
    jButton2.setText("İptal");
    jButton3.setText("Varsayılanlara dön");
    jButton3.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jLabel1).addComponent(jLabel2).addComponent(jLabel3).addComponent(jLabel4).addComponent(jLabel5).addComponent(jLabel6).addComponent(jLabel7).addComponent(jLabel8).addComponent(jLabel9).addComponent(jLabel10).addComponent(jLabel11).addComponent(jLabel12).addComponent(jLabel13)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addComponent(jButton3).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE).addComponent(jButton2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton1)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(jComboBox12, 0, 158, Short.MAX_VALUE).addComponent(jComboBox9, 0, 158, Short.MAX_VALUE).addComponent(jComboBox5, 0, 158, Short.MAX_VALUE).addComponent(jComboBox6, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox7, 0, 158, Short.MAX_VALUE).addComponent(jComboBox8, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox3, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox4, 0, 158, Short.MAX_VALUE).addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox1, 0, 158, Short.MAX_VALUE).addComponent(jComboBox10, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox11, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(jComboBox17, 0, 158, Short.MAX_VALUE).addComponent(jComboBox24, 0, 158, Short.MAX_VALUE).addComponent(jComboBox20, 0, 158, Short.MAX_VALUE).addComponent(jComboBox21, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox22, 0, 158, Short.MAX_VALUE).addComponent(jComboBox23, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox18, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox19, 0, 158, Short.MAX_VALUE).addComponent(jComboBox13, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox14, 0, 158, Short.MAX_VALUE).addComponent(jComboBox16, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jComboBox15, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))).addComponent(jSlider1, javax.swing.GroupLayout.Alignment.TRAILING, 0, 0, Short.MAX_VALUE)).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel1).addComponent(jComboBox14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel2).addComponent(jComboBox13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel3).addComponent(jComboBox19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel4).addComponent(jComboBox18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel5).addComponent(jComboBox22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel6).addComponent(jComboBox23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel7).addComponent(jComboBox20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel8).addComponent(jComboBox21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel9).addComponent(jComboBox24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel10).addComponent(jComboBox16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel11).addComponent(jComboBox17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jComboBox11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel12).addComponent(jComboBox15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel13).addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jButton1).addComponent(jButton2)).addComponent(jButton3)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    pack();
}
Example 5
Project: oobd-master  File: swingView.java View source code
/**
     * 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")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    mainPanel = new javax.swing.JPanel();
    main = new javax.swing.JPanel();
    scriptSelectComboBox = new javax.swing.JComboBox();
    startButtonLabel = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    oobdImage = new javax.swing.JLabel();
    jPanel3 = new javax.swing.JPanel();
    settings = new javax.swing.JPanel();
    backButtonLabel = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    comportComboBox = new javax.swing.JComboBox();
    chooseScriptDirectoryButton = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();
    scriptDir = new javax.swing.JTextField();
    pgpEnabled = new javax.swing.JCheckBox();
    pgpImportKeys = new javax.swing.JButton();
    pgpStatus = new javax.swing.JLabel();
    jLabelRemoteServer = new javax.swing.JLabel();
    jTextFieldRemoteServer = new javax.swing.JTextField();
    jTextFieldProxyHost = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jSpinnerProxyPort = new javax.swing.JSpinner();
    httpEnabled = new javax.swing.JCheckBox();
    protocolComboBox = new javax.swing.JComboBox();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    libraryDir = new javax.swing.JTextField();
    chooseLibsDirectoryButton = new javax.swing.JButton();
    diagnose = new javax.swing.JPanel();
    toolPanelDiagnose = new javax.swing.JPanel();
    diagnoseTitle = new javax.swing.JLabel();
    connectSymbol = new javax.swing.JLabel();
    diagnoseTabPanel = new javax.swing.JTabbedPane();
    diagnosePanel = new javax.swing.JPanel();
    diagnoseToolBar = new javax.swing.JToolBar();
    backButton = new javax.swing.JButton();
    updateButton = new javax.swing.JButton();
    timerButton = new javax.swing.JToggleButton();
    jSeparator1 = new javax.swing.JToolBar.Separator();
    gridSmallerButton = new javax.swing.JButton();
    gridBiggerButton = new javax.swing.JButton();
    diagnoseScrollPanel = new javax.swing.JScrollPane();
    diagnoseButtonPanel = new javax.swing.JPanel();
    outputPanel = new javax.swing.JPanel();
    outputToolbar = new javax.swing.JToolBar();
    outputBackButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    logButton = new javax.swing.JToggleButton();
    saveButton = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreaOutput = new javax.swing.JTextArea();
    menuBar = new javax.swing.JMenuBar();
    javax.swing.JMenu fileMenu = new javax.swing.JMenu();
    settingsMenuItem = new javax.swing.JMenuItem();
    javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
    javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
    statusPanel = new javax.swing.JPanel();
    javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
    statusMessageLabel = new javax.swing.JLabel();
    statusAnimationLabel = new javax.swing.JLabel();
    progressBar = new javax.swing.JProgressBar();
    // NOI18N
    mainPanel.setName("mainPanel");
    mainPanel.add(main, MAINPANEL);
    mainPanel.add(settings, SETTINGSPANEL);
    mainPanel.add(diagnose, DIAGNOSEPANEL);
    mainPanel.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentResized(java.awt.event.ComponentEvent evt) {
            mainPanelComponentResized(evt);
        }
    });
    mainPanel.setLayout(new java.awt.CardLayout());
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(org.oobd.ui.swing.desk.swing.class).getContext().getResourceMap(swingView.class);
    // NOI18N
    main.setBackground(resourceMap.getColor("main.background"));
    // NOI18N
    main.setForeground(resourceMap.getColor("main.foreground"));
    // NOI18N
    main.setName("main");
    main.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentShown(java.awt.event.ComponentEvent evt) {
            mainComponentShown(evt);
        }
    });
    main.setLayout(new java.awt.BorderLayout());
    // NOI18N
    scriptSelectComboBox.setName("scriptSelectComboBox");
    main.add(scriptSelectComboBox, java.awt.BorderLayout.PAGE_END);
    startButtonLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    // NOI18N
    startButtonLabel.setIcon(resourceMap.getIcon("startButtonLabel.icon"));
    // NOI18N
    startButtonLabel.setText(resourceMap.getString("startButtonLabel.text"));
    // NOI18N
    startButtonLabel.setToolTipText(resourceMap.getString("startButtonLabel.toolTipText"));
    // NOI18N
    startButtonLabel.setName("startButtonLabel");
    startButtonLabel.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseClicked(java.awt.event.MouseEvent evt) {
            startButtonLabelMouseClicked(evt);
        }
    });
    main.add(startButtonLabel, java.awt.BorderLayout.CENTER);
    // NOI18N
    jPanel2.setBackground(resourceMap.getColor("jPanel2.background"));
    // NOI18N
    jPanel2.setName("jPanel2");
    jPanel2.setLayout(new java.awt.BorderLayout());
    // NOI18N
    oobdImage.setBackground(resourceMap.getColor("oobdImage.background"));
    oobdImage.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    // NOI18N
    oobdImage.setIcon(resourceMap.getIcon("oobdImage.icon"));
    // NOI18N
    oobdImage.setText(resourceMap.getString("oobdImage.text"));
    // NOI18N
    oobdImage.setName("oobdImage");
    jPanel2.add(oobdImage, java.awt.BorderLayout.CENTER);
    // NOI18N
    jPanel3.setBackground(resourceMap.getColor("jPanel3.background"));
    // NOI18N
    jPanel3.setName("jPanel3");
    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 503, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 100, Short.MAX_VALUE));
    jPanel2.add(jPanel3, java.awt.BorderLayout.PAGE_START);
    main.add(jPanel2, java.awt.BorderLayout.PAGE_START);
    mainPanel.add(main, "card2");
    // NOI18N
    settings.setName("settings");
    settings.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentHidden(java.awt.event.ComponentEvent evt) {
            settingsComponentHidden(evt);
        }

        public void componentShown(java.awt.event.ComponentEvent evt) {
            settingsComponentShown(evt);
        }
    });
    settings.setLayout(new java.awt.GridBagLayout());
    // NOI18N
    backButtonLabel.setIcon(resourceMap.getIcon("backButtonLabel.icon"));
    // NOI18N
    backButtonLabel.setText(resourceMap.getString("backButtonLabel.text"));
    // NOI18N
    backButtonLabel.setToolTipText(resourceMap.getString("backButtonLabel.toolTipText"));
    // NOI18N
    backButtonLabel.setName("backButtonLabel");
    backButtonLabel.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseClicked(java.awt.event.MouseEvent evt) {
            backButtonLabelMouseClicked(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(backButtonLabel, gridBagConstraints);
    // NOI18N
    jLabel1.setText(resourceMap.getString("jLabel1.text"));
    // NOI18N
    jLabel1.setName("jLabel1");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabel1, gridBagConstraints);
    comportComboBox.setEditable(true);
    // NOI18N
    comportComboBox.setName("comportComboBox");
    comportComboBox.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            comportComboBoxActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(comportComboBox, gridBagConstraints);
    // NOI18N
    chooseScriptDirectoryButton.setIcon(resourceMap.getIcon("chooseScriptDirectoryButton.icon"));
    // NOI18N
    chooseScriptDirectoryButton.setText(resourceMap.getString("chooseScriptDirectoryButton.text"));
    // NOI18N
    chooseScriptDirectoryButton.setToolTipText(resourceMap.getString("chooseScriptDirectoryButton.toolTipText"));
    // NOI18N
    chooseScriptDirectoryButton.setName("chooseScriptDirectoryButton");
    chooseScriptDirectoryButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            chooseScriptDirectoryButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 4;
    settings.add(chooseScriptDirectoryButton, gridBagConstraints);
    // NOI18N
    jLabel4.setText(resourceMap.getString("jLabel4.text"));
    // NOI18N
    jLabel4.setName("jLabel4");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabel4, gridBagConstraints);
    // NOI18N
    scriptDir.setText(resourceMap.getString("scriptDir.text"));
    // NOI18N
    scriptDir.setName("scriptDir");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(scriptDir, gridBagConstraints);
    // NOI18N
    pgpEnabled.setText(resourceMap.getString("pgpEnabled.text"));
    // NOI18N
    pgpEnabled.setName("pgpEnabled");
    pgpEnabled.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            pgpEnabledActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(pgpEnabled, gridBagConstraints);
    // NOI18N
    pgpImportKeys.setText(resourceMap.getString("pgpImportKeys.text"));
    // NOI18N
    pgpImportKeys.setName("pgpImportKeys");
    pgpImportKeys.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            pgpImportKeysActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(pgpImportKeys, gridBagConstraints);
    // NOI18N
    pgpStatus.setText(resourceMap.getString("pgpStatus.text"));
    // NOI18N
    pgpStatus.setName("pgpStatus");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(pgpStatus, gridBagConstraints);
    // NOI18N
    jLabelRemoteServer.setText(resourceMap.getString("jLabelRemoteServer.text"));
    // NOI18N
    jLabelRemoteServer.setName("jLabelRemoteServer");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabelRemoteServer, gridBagConstraints);
    // NOI18N
    jTextFieldRemoteServer.setText(resourceMap.getString("jTextFieldRemoteServer.text"));
    // NOI18N
    jTextFieldRemoteServer.setName("jTextFieldRemoteServer");
    jTextFieldRemoteServer.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextFieldRemoteServerActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(jTextFieldRemoteServer, gridBagConstraints);
    // NOI18N
    jTextFieldProxyHost.setText(resourceMap.getString("jTextFieldProxyHost.text"));
    // NOI18N
    jTextFieldProxyHost.setName("jTextFieldProxyHost");
    jTextFieldProxyHost.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextFieldProxyHostActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(jTextFieldProxyHost, gridBagConstraints);
    // NOI18N
    jLabel2.setText(resourceMap.getString("jLabel2.text"));
    // NOI18N
    jLabel2.setName("jLabel2");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabel2, gridBagConstraints);
    // NOI18N
    jLabel5.setText(resourceMap.getString("jLabel5.text"));
    // NOI18N
    jLabel5.setName("jLabel5");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabel5, gridBagConstraints);
    // NOI18N
    jSpinnerProxyPort.setName("jSpinnerProxyPort");
    jSpinnerProxyPort.addAncestorListener(new javax.swing.event.AncestorListener() {

        public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
        }

        public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
            jSpinnerProxyPortAncestorAdded(evt);
        }

        public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(jSpinnerProxyPort, gridBagConstraints);
    // NOI18N
    httpEnabled.setText(resourceMap.getString("HTTPCheckBox.text"));
    // NOI18N
    httpEnabled.setToolTipText(resourceMap.getString("HTTPCheckBox.toolTipText"));
    // NOI18N
    httpEnabled.setName("HTTPCheckBox");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(httpEnabled, gridBagConstraints);
    protocolComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Discovery", "Kadaver", "Bluetooth", "Telnet" }));
    protocolComboBox.setSelectedIndex(2);
    // NOI18N
    protocolComboBox.setToolTipText(resourceMap.getString("connectionTypeSpinner.toolTipText"));
    // NOI18N
    protocolComboBox.setName("connectionTypeSpinner");
    protocolComboBox.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            protocolComboBoxActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(protocolComboBox, gridBagConstraints);
    // NOI18N
    jLabel6.setText(resourceMap.getString("jLabel6.text"));
    // NOI18N
    jLabel6.setName("jLabel6");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabel6, gridBagConstraints);
    // NOI18N
    jLabel7.setText(resourceMap.getString("jLabel7.text"));
    // NOI18N
    jLabel7.setName("jLabel7");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    settings.add(jLabel7, gridBagConstraints);
    // NOI18N
    libraryDir.setText(resourceMap.getString("libraryDir.text"));
    // NOI18N
    libraryDir.setName("libraryDir");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    settings.add(libraryDir, gridBagConstraints);
    // NOI18N
    chooseLibsDirectoryButton.setIcon(resourceMap.getIcon("chooseLibsDirectoryButton.icon"));
    // NOI18N
    chooseLibsDirectoryButton.setText(resourceMap.getString("chooseLibsDirectoryButton.text"));
    // NOI18N
    chooseLibsDirectoryButton.setName("chooseLibsDirectoryButton");
    chooseLibsDirectoryButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            chooseLibsDirectoryButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 5;
    settings.add(chooseLibsDirectoryButton, gridBagConstraints);
    mainPanel.add(settings, "card4");
    // NOI18N
    diagnose.setName("diagnose");
    diagnose.setLayout(new javax.swing.BoxLayout(diagnose, javax.swing.BoxLayout.PAGE_AXIS));
    // NOI18N
    toolPanelDiagnose.setName("toolPanelDiagnose");
    toolPanelDiagnose.setLayout(new javax.swing.BoxLayout(toolPanelDiagnose, javax.swing.BoxLayout.LINE_AXIS));
    // NOI18N
    diagnoseTitle.setText(resourceMap.getString("diagnoseTitle.text"));
    // NOI18N
    diagnoseTitle.setName("diagnoseTitle");
    toolPanelDiagnose.add(diagnoseTitle);
    // NOI18N
    connectSymbol.setText(resourceMap.getString("connectSymbol.text"));
    // NOI18N
    connectSymbol.setName("connectSymbol");
    toolPanelDiagnose.add(connectSymbol);
    diagnose.add(toolPanelDiagnose);
    // NOI18N
    diagnoseTabPanel.setName("diagnoseTabPanel");
    // NOI18N
    diagnosePanel.setToolTipText(resourceMap.getString("diagnosePanel.toolTipText"));
    // NOI18N
    diagnosePanel.setName("diagnosePanel");
    diagnosePanel.setLayout(new javax.swing.BoxLayout(diagnosePanel, javax.swing.BoxLayout.PAGE_AXIS));
    diagnoseToolBar.setRollover(true);
    diagnoseToolBar.setMaximumSize(new java.awt.Dimension(32767, 46));
    // NOI18N
    diagnoseToolBar.setName("diagnoseToolBar");
    javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(org.oobd.ui.swing.desk.swing.class).getContext().getActionMap(swingView.class, this);
    // NOI18N
    backButton.setAction(actionMap.get("onClickButton_Back"));
    // NOI18N
    backButton.setIcon(resourceMap.getIcon("backButton.icon"));
    // NOI18N
    backButton.setText(resourceMap.getString("backButton.text"));
    // NOI18N
    backButton.setToolTipText(resourceMap.getString("backButton.toolTipText"));
    backButton.setFocusable(false);
    backButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    backButton.setName("backButton");
    backButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    diagnoseToolBar.add(backButton);
    // NOI18N
    updateButton.setAction(actionMap.get("onClickButton_Update"));
    // NOI18N
    updateButton.setIcon(resourceMap.getIcon("updateButton.icon"));
    // NOI18N
    updateButton.setText(resourceMap.getString("updateButton.text"));
    // NOI18N
    updateButton.setToolTipText(resourceMap.getString("updateButton.toolTipText"));
    updateButton.setFocusable(false);
    updateButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    updateButton.setName("updateButton");
    updateButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    diagnoseToolBar.add(updateButton);
    // NOI18N
    timerButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/oobd/ui/swing/desk/resources/timer.png")));
    // NOI18N
    timerButton.setText(resourceMap.getString("timerButton.text"));
    // NOI18N
    timerButton.setToolTipText(resourceMap.getString("timerButton.toolTipText"));
    timerButton.setFocusable(false);
    timerButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    timerButton.setName("timerButton");
    timerButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    diagnoseToolBar.add(timerButton);
    // NOI18N
    jSeparator1.setName("jSeparator1");
    diagnoseToolBar.add(jSeparator1);
    // NOI18N
    gridSmallerButton.setIcon(resourceMap.getIcon("gridSmallerButton.icon"));
    // NOI18N
    gridSmallerButton.setText(resourceMap.getString("gridSmallerButton.text"));
    // NOI18N
    gridSmallerButton.setToolTipText(resourceMap.getString("gridSmallerButton.toolTipText"));
    gridSmallerButton.setFocusable(false);
    gridSmallerButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    gridSmallerButton.setName("gridSmallerButton");
    gridSmallerButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    gridSmallerButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            gridSmallerButtonActionPerformed(evt);
        }
    });
    diagnoseToolBar.add(gridSmallerButton);
    // NOI18N
    gridBiggerButton.setIcon(resourceMap.getIcon("gridBiggerButton.icon"));
    // NOI18N
    gridBiggerButton.setText(resourceMap.getString("gridBiggerButton.text"));
    // NOI18N
    gridBiggerButton.setToolTipText(resourceMap.getString("gridBiggerButton.toolTipText"));
    gridBiggerButton.setFocusable(false);
    gridBiggerButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    gridBiggerButton.setName("gridBiggerButton");
    gridBiggerButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    gridBiggerButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            gridBiggerButtonActionPerformed(evt);
        }
    });
    diagnoseToolBar.add(gridBiggerButton);
    diagnosePanel.add(diagnoseToolBar);
    // NOI18N
    diagnoseScrollPanel.setName("diagnoseScrollPanel");
    // NOI18N
    diagnoseButtonPanel.setName("diagnoseButtonPanel");
    diagnoseButtonPanel.setLayout(new java.awt.GridLayout(1, 0));
    diagnoseScrollPanel.setViewportView(diagnoseButtonPanel);
    diagnosePanel.add(diagnoseScrollPanel);
    // NOI18N
    diagnoseTabPanel.addTab(resourceMap.getString("diagnosePanel.TabConstraints.tabTitle"), resourceMap.getIcon("diagnosePanel.TabConstraints.tabIcon"), diagnosePanel, resourceMap.getString("diagnosePanel.TabConstraints.tabToolTip"));
    // NOI18N
    outputPanel.setName("outputPanel");
    outputPanel.setLayout(new javax.swing.BoxLayout(outputPanel, javax.swing.BoxLayout.PAGE_AXIS));
    outputToolbar.setRollover(true);
    outputToolbar.setMaximumSize(new java.awt.Dimension(32767, 46));
    // NOI18N
    outputToolbar.setName("outputToolbar");
    // NOI18N
    outputBackButton.setIcon(resourceMap.getIcon("outputBackButton.icon"));
    // NOI18N
    outputBackButton.setText(resourceMap.getString("outputBackButton.text"));
    outputBackButton.setFocusable(false);
    outputBackButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    outputBackButton.setName("outputBackButton");
    outputBackButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    outputBackButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            outputBackButtonActionPerformed(evt);
        }
    });
    outputToolbar.add(outputBackButton);
    // NOI18N
    cancelButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/oobd/ui/swing/desk/resources/cancel.png")));
    // NOI18N
    cancelButton.setToolTipText(resourceMap.getString("cancelButton.toolTipText"));
    cancelButton.setFocusable(false);
    cancelButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    cancelButton.setName("cancelButton");
    cancelButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    cancelButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });
    outputToolbar.add(cancelButton);
    // NOI18N
    logButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/oobd/ui/swing/desk/resources/text.png")));
    logButton.setSelected(true);
    // NOI18N
    logButton.setToolTipText(resourceMap.getString("logButton.toolTipText"));
    logButton.setFocusable(false);
    logButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    logButton.setName("logButton");
    logButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    outputToolbar.add(logButton);
    // NOI18N
    saveButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/oobd/ui/swing/desk/resources/disk.png")));
    // NOI18N
    saveButton.setToolTipText(resourceMap.getString("saveButton.toolTipText"));
    saveButton.setFocusable(false);
    saveButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    saveButton.setName("saveButton");
    saveButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    saveButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveButtonActionPerformed(evt);
        }
    });
    outputToolbar.add(saveButton);
    outputPanel.add(outputToolbar);
    // NOI18N
    jScrollPane1.setName("jScrollPane1");
    jTextAreaOutput.setColumns(20);
    jTextAreaOutput.setRows(5);
    // NOI18N
    jTextAreaOutput.setName("jTextAreaOutput");
    jScrollPane1.setViewportView(jTextAreaOutput);
    outputPanel.add(jScrollPane1);
    // NOI18N
    diagnoseTabPanel.addTab(resourceMap.getString("outputPanel.TabConstraints.tabTitle"), resourceMap.getIcon("outputPanel.TabConstraints.tabIcon"), outputPanel, resourceMap.getString("outputPanel.TabConstraints.tabToolTip"));
    diagnose.add(diagnoseTabPanel);
    mainPanel.add(diagnose, "card3");
    // NOI18N
    menuBar.setBackground(resourceMap.getColor("menuBar.background"));
    // NOI18N
    menuBar.setName("menuBar");
    // NOI18N
    fileMenu.setText(resourceMap.getString("fileMenu.text"));
    // NOI18N
    fileMenu.setName("fileMenu");
    // NOI18N
    settingsMenuItem.setAction(actionMap.get("onClickMenu_Settings"));
    // NOI18N
    settingsMenuItem.setText(resourceMap.getString("settingsMenuItem.text"));
    // NOI18N
    settingsMenuItem.setName("settingsMenuItem");
    fileMenu.add(settingsMenuItem);
    // NOI18N
    aboutMenuItem.setAction(actionMap.get("showAboutBox"));
    // NOI18N
    aboutMenuItem.setName("aboutMenuItem");
    fileMenu.add(aboutMenuItem);
    // NOI18N
    exitMenuItem.setAction(actionMap.get("quit"));
    // NOI18N
    exitMenuItem.setName("exitMenuItem");
    fileMenu.add(exitMenuItem);
    menuBar.add(fileMenu);
    // NOI18N
    statusPanel.setName("statusPanel");
    // NOI18N
    statusPanelSeparator.setName("statusPanelSeparator");
    // NOI18N
    statusMessageLabel.setName("statusMessageLabel");
    statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    // NOI18N
    statusAnimationLabel.setName("statusAnimationLabel");
    // NOI18N
    progressBar.setName("progressBar");
    javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
    statusPanel.setLayout(statusPanelLayout);
    statusPanelLayout.setHorizontalGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 503, Short.MAX_VALUE).addGroup(statusPanelLayout.createSequentialGroup().addContainerGap().addComponent(statusMessageLabel).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 319, Short.MAX_VALUE).addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(statusAnimationLabel).addContainerGap()));
    statusPanelLayout.setVerticalGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(statusPanelLayout.createSequentialGroup().addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(statusMessageLabel).addComponent(statusAnimationLabel).addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(3, 3, 3)));
    setComponent(mainPanel);
    setMenuBar(menuBar);
    setStatusBar(statusPanel);
}
Example 6
Project: snap-desktop-master  File: TimeSeriesValidator.java View source code
@Override
public void adaptTo(Object timeSeriesKey, AxisMapping axisMapping) {
    if (timeSeriesExpressionsMap.containsKey(timeSeriesKey)) {
        currentExpressionMap = timeSeriesExpressionsMap.get(timeSeriesKey);
    } else {
        currentExpressionMap = new HashMap<>();
        timeSeriesExpressionsMap.put(timeSeriesKey, currentExpressionMap);
    }
    qualifiedSourceNames = extractQualifiedSourceNames(axisMapping);
    namespace = new DefaultNamespace();
    for (String qualifiedSourceName : qualifiedSourceNames) {
        namespace.registerSymbol(SymbolFactory.createVariable(qualifiedSourceName, 0.0));
    }
    if (qualifiedSourceNames.size() > 0 && hasUI) {
        expressionTextField.setEnabled(true);
        sourceNamesDropDown.setEnabled(true);
        sourceNamesDropDown.setModel(new DefaultComboBoxModel<>(getSourceNames()));
        final String expression = getExpressionFor(getSelectedSourceName());
        expressionTextField.setText(expression == null ? "" : expression);
    }
}
Example 7
Project: compomics-utilities-master  File: PtmDialog.java View source code
/**
     * 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")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    backgroundPanel = new javax.swing.JPanel();
    okButton = new javax.swing.JButton();
    helpJButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    scrollPane = new javax.swing.JScrollPane();
    scrollPanePanel = new javax.swing.JPanel();
    unimodMappingPanel = new javax.swing.JPanel();
    unimodAccessionJTextField = new javax.swing.JTextField();
    unimodAccessionLabel = new javax.swing.JLabel();
    unimodNameLabel = new javax.swing.JLabel();
    unimodNameJTextField = new javax.swing.JTextField();
    unimodLinkLabel = new javax.swing.JLabel();
    cvExampleLabel = new javax.swing.JLabel();
    reporterIonsPanel = new javax.swing.JPanel();
    reporterIonsJScrollPane = new javax.swing.JScrollPane();
    reporterIonsTable = new JTable() {

        protected JTableHeader createDefaultTableHeader() {
            return new JTableHeader(columnModel) {

                public String getToolTipText(MouseEvent e) {
                    java.awt.Point p = e.getPoint();
                    int index = columnModel.getColumnIndexAtX(p.x);
                    int realIndex = columnModel.getColumn(index).getModelIndex();
                    return (String) reporterIonTableToolTips.get(realIndex);
                }
            };
        }
    };
    removerReporterIon = new javax.swing.JButton();
    addReporterIon = new javax.swing.JButton();
    detailsPanel = new javax.swing.JPanel();
    typeCmb = new javax.swing.JComboBox();
    jLabel1 = new javax.swing.JLabel();
    nameLabel = new javax.swing.JLabel();
    nameTxt = new javax.swing.JTextField();
    compositionTxt = new javax.swing.JTextField();
    patternLabel = new javax.swing.JLabel();
    patternTxt = new javax.swing.JTextField();
    nameShortLabel = new javax.swing.JLabel();
    nameShortTxt = new javax.swing.JTextField();
    compositionLabel = new javax.swing.JLabel();
    massLabel = new javax.swing.JLabel();
    massTxt = new javax.swing.JTextField();
    neutralLossesPanel = new javax.swing.JPanel();
    neutralLossesJScrollPane = new javax.swing.JScrollPane();
    neutralLossesTable = new JTable() {

        protected JTableHeader createDefaultTableHeader() {
            return new JTableHeader(columnModel) {

                public String getToolTipText(MouseEvent e) {
                    java.awt.Point p = e.getPoint();
                    int index = columnModel.getColumnIndexAtX(p.x);
                    int realIndex = columnModel.getColumn(index).getModelIndex();
                    return (String) neutralLossesTableToolTips.get(realIndex);
                }
            };
        }
    };
    addNeutralLoss = new javax.swing.JButton();
    removeNeutralLoss = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("New Modification");
    setMinimumSize(new java.awt.Dimension(500, 500));
    backgroundPanel.setBackground(new java.awt.Color(230, 230, 230));
    okButton.setText("OK");
    okButton.setEnabled(false);
    okButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
        }
    });
    // NOI18N
    helpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help.GIF")));
    helpJButton.setToolTipText("Help");
    helpJButton.setBorder(null);
    helpJButton.setBorderPainted(false);
    helpJButton.setContentAreaFilled(false);
    helpJButton.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseEntered(java.awt.event.MouseEvent evt) {
            helpJButtonMouseEntered(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            helpJButtonMouseExited(evt);
        }
    });
    helpJButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            helpJButtonActionPerformed(evt);
        }
    });
    cancelButton.setText("Cancel");
    cancelButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });
    scrollPane.setBorder(null);
    scrollPanePanel.setBackground(new java.awt.Color(230, 230, 230));
    unimodMappingPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Unimod Mapping"));
    unimodMappingPanel.setOpaque(false);
    unimodAccessionJTextField.setEditable(false);
    unimodAccessionJTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    unimodAccessionJTextField.addKeyListener(new java.awt.event.KeyAdapter() {

        public void keyReleased(java.awt.event.KeyEvent evt) {
            unimodAccessionJTextFieldKeyReleased(evt);
        }
    });
    unimodAccessionLabel.setText("Accession");
    unimodNameLabel.setText("PSI-MS Name");
    unimodNameJTextField.setEditable(false);
    unimodNameJTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    unimodNameJTextField.addKeyListener(new java.awt.event.KeyAdapter() {

        public void keyReleased(java.awt.event.KeyEvent evt) {
            unimodNameJTextFieldKeyReleased(evt);
        }
    });
    unimodLinkLabel.setText("<html><a href>See: http://www.unimod.org</a></html>");
    unimodLinkLabel.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseEntered(java.awt.event.MouseEvent evt) {
            unimodLinkLabelMouseEntered(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            unimodLinkLabelMouseExited(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            unimodLinkLabelMouseReleased(evt);
        }
    });
    cvExampleLabel.setFont(cvExampleLabel.getFont().deriveFont((cvExampleLabel.getFont().getStyle() | java.awt.Font.ITALIC)));
    cvExampleLabel.setText("Ex.: Accession:1, PSI-MS Name: Acetyl");
    javax.swing.GroupLayout unimodMappingPanelLayout = new javax.swing.GroupLayout(unimodMappingPanel);
    unimodMappingPanel.setLayout(unimodMappingPanelLayout);
    unimodMappingPanelLayout.setHorizontalGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(unimodMappingPanelLayout.createSequentialGroup().addContainerGap().addGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(unimodNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(unimodAccessionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(unimodMappingPanelLayout.createSequentialGroup().addComponent(cvExampleLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(unimodLinkLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(unimodAccessionJTextField).addComponent(unimodNameJTextField, javax.swing.GroupLayout.Alignment.LEADING)).addContainerGap()));
    unimodMappingPanelLayout.setVerticalGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(unimodMappingPanelLayout.createSequentialGroup().addContainerGap().addGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(unimodAccessionJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(unimodAccessionLabel)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(unimodNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(unimodNameLabel)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(unimodMappingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(unimodLinkLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cvExampleLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    reporterIonsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Reporter Ions"));
    reporterIonsPanel.setOpaque(false);
    reporterIonsTable.setModel(new ReporterIonsTable());
    reporterIonsTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    reporterIonsTable.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            reporterIonsTableMouseReleased(evt);
        }
    });
    reporterIonsJScrollPane.setViewportView(reporterIonsTable);
    removerReporterIon.setText("Remove");
    removerReporterIon.setToolTipText("Remove the selected reporter ion");
    removerReporterIon.setEnabled(false);
    removerReporterIon.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removerReporterIonActionPerformed(evt);
        }
    });
    addReporterIon.setText("Add");
    addReporterIon.setToolTipText("Add a reporter ion");
    addReporterIon.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addReporterIonActionPerformed(evt);
        }
    });
    javax.swing.GroupLayout reporterIonsPanelLayout = new javax.swing.GroupLayout(reporterIonsPanel);
    reporterIonsPanel.setLayout(reporterIonsPanelLayout);
    reporterIonsPanelLayout.setHorizontalGroup(reporterIonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(reporterIonsPanelLayout.createSequentialGroup().addContainerGap().addGroup(reporterIonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(addReporterIon, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(removerReporterIon, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(reporterIonsJScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addContainerGap()));
    reporterIonsPanelLayout.setVerticalGroup(reporterIonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(reporterIonsPanelLayout.createSequentialGroup().addContainerGap().addGroup(reporterIonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(reporterIonsJScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addGroup(reporterIonsPanelLayout.createSequentialGroup().addGap(0, 33, Short.MAX_VALUE).addComponent(addReporterIon).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(removerReporterIon))).addContainerGap()));
    detailsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Properties"));
    detailsPanel.setOpaque(false);
    typeCmb.setMaximumRowCount(15);
    typeCmb.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Particular Amino Acid", "Protein N-term", "Protein N-term - Particular Amino Acid(s)", "Protein C-term", "Protein C-term - Particular Amino Acid(s)", "Peptide N-term", "Peptide N-term - Particular Amino Acid(s)", "Peptide C-term", "Peptide C-term - Particular Amino Acid(s)" }));
    typeCmb.setToolTipText("The modification type. See help for details.");
    typeCmb.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            typeCmbActionPerformed(evt);
        }
    });
    jLabel1.setText("Type");
    jLabel1.setToolTipText("The modification type. See help for details.");
    nameLabel.setText("Name");
    nameLabel.setToolTipText("The modification name");
    nameTxt.setEditable(false);
    nameTxt.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    nameTxt.setToolTipText("The modification name");
    nameTxt.addKeyListener(new java.awt.event.KeyAdapter() {

        public void keyReleased(java.awt.event.KeyEvent evt) {
            nameTxtKeyReleased(evt);
        }
    });
    compositionTxt.setEditable(false);
    compositionTxt.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    compositionTxt.setToolTipText("Monoisotopic mass in Dalton");
    compositionTxt.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            compositionTxtMouseReleased(evt);
        }
    });
    patternLabel.setText("Pattern");
    patternLabel.setToolTipText("Residues modified");
    patternTxt.setEditable(false);
    patternTxt.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    patternTxt.setToolTipText("Residues modified");
    patternTxt.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            patternTxtMouseReleased(evt);
        }
    });
    nameShortLabel.setText("Short Name");
    nameShortLabel.setToolTipText("The modification name");
    nameShortTxt.setEditable(false);
    nameShortTxt.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    nameShortTxt.setToolTipText("The modification name");
    nameShortTxt.addKeyListener(new java.awt.event.KeyAdapter() {

        public void keyReleased(java.awt.event.KeyEvent evt) {
            nameShortTxtKeyReleased(evt);
        }
    });
    compositionLabel.setText("Composition");
    massLabel.setText("Mass");
    massLabel.setToolTipText("Monoisotopic mass");
    massTxt.setEditable(false);
    massTxt.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    massTxt.setToolTipText("Monoisotopic mass in Dalton");
    javax.swing.GroupLayout detailsPanelLayout = new javax.swing.GroupLayout(detailsPanel);
    detailsPanel.setLayout(detailsPanelLayout);
    detailsPanelLayout.setHorizontalGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(detailsPanelLayout.createSequentialGroup().addContainerGap().addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(detailsPanelLayout.createSequentialGroup().addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(nameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE).addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(typeCmb, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(nameTxt))).addGroup(detailsPanelLayout.createSequentialGroup().addComponent(patternLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(patternTxt)).addGroup(detailsPanelLayout.createSequentialGroup().addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(nameShortLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(compositionLabel)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(detailsPanelLayout.createSequentialGroup().addComponent(compositionTxt).addGap(18, 18, 18).addComponent(massLabel).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(massTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(nameShortTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 444, Short.MAX_VALUE)))).addContainerGap()));
    detailsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jLabel1, nameLabel, nameShortLabel, patternLabel });
    detailsPanelLayout.setVerticalGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(detailsPanelLayout.createSequentialGroup().addContainerGap().addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(typeCmb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel1)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(nameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(nameLabel)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(nameShortTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(nameShortLabel)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(compositionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(compositionLabel).addComponent(massLabel).addComponent(massTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(patternTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(patternLabel)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    neutralLossesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Neutral Losses"));
    neutralLossesPanel.setOpaque(false);
    neutralLossesTable.setModel(new NeutralLossesTable());
    neutralLossesTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    neutralLossesTable.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            neutralLossesTableMouseReleased(evt);
        }
    });
    neutralLossesJScrollPane.setViewportView(neutralLossesTable);
    addNeutralLoss.setText("Add");
    addNeutralLoss.setToolTipText("Add a neutral loss");
    addNeutralLoss.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addNeutralLossActionPerformed(evt);
        }
    });
    removeNeutralLoss.setText("Remove");
    removeNeutralLoss.setToolTipText("Remove the selected neutral loss");
    removeNeutralLoss.setEnabled(false);
    removeNeutralLoss.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removeNeutralLossActionPerformed(evt);
        }
    });
    javax.swing.GroupLayout neutralLossesPanelLayout = new javax.swing.GroupLayout(neutralLossesPanel);
    neutralLossesPanel.setLayout(neutralLossesPanelLayout);
    neutralLossesPanelLayout.setHorizontalGroup(neutralLossesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(neutralLossesPanelLayout.createSequentialGroup().addContainerGap().addGroup(neutralLossesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(addNeutralLoss, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(removeNeutralLoss, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(neutralLossesJScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addContainerGap()));
    neutralLossesPanelLayout.setVerticalGroup(neutralLossesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(neutralLossesPanelLayout.createSequentialGroup().addContainerGap().addGroup(neutralLossesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(neutralLossesJScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addGroup(neutralLossesPanelLayout.createSequentialGroup().addGap(0, 33, Short.MAX_VALUE).addComponent(addNeutralLoss).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(removeNeutralLoss))).addContainerGap()));
    javax.swing.GroupLayout scrollPanePanelLayout = new javax.swing.GroupLayout(scrollPanePanel);
    scrollPanePanel.setLayout(scrollPanePanelLayout);
    scrollPanePanelLayout.setHorizontalGroup(scrollPanePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(detailsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(neutralLossesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(unimodMappingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(reporterIonsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    scrollPanePanelLayout.setVerticalGroup(scrollPanePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(scrollPanePanelLayout.createSequentialGroup().addComponent(detailsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(neutralLossesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(reporterIonsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(unimodMappingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
    scrollPane.setViewportView(scrollPanePanel);
    javax.swing.GroupLayout backgroundPanelLayout = new javax.swing.GroupLayout(backgroundPanel);
    backgroundPanel.setLayout(backgroundPanelLayout);
    backgroundPanelLayout.setHorizontalGroup(backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(backgroundPanelLayout.createSequentialGroup().addGroup(backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(backgroundPanelLayout.createSequentialGroup().addGap(20, 20, 20).addComponent(helpJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cancelButton)).addGroup(backgroundPanelLayout.createSequentialGroup().addContainerGap().addComponent(scrollPane))).addContainerGap()));
    backgroundPanelLayout.setVerticalGroup(backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(backgroundPanelLayout.createSequentialGroup().addContainerGap().addComponent(scrollPane).addGap(11, 11, 11).addGroup(backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER).addComponent(helpJButton).addComponent(okButton).addComponent(cancelButton)).addContainerGap()));
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(backgroundPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(backgroundPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    pack();
}
Example 8
Project: geotoolkit-master  File: DatabasePanel.java View source code
/**
     * Loads the settings from the [email protected] #CONFIGURATION_FILE} property file.
     * The values will be stored in the GUI fields. This method is invoked only once.
     */
private void load() {
    Properties settings;
    try {
        settings = installation.getDataSource();
    } catch (IOException ex) {
        error(Errors.Keys.CantReadFile_1, ex);
        return;
    }
    final boolean manual = (settings != null);
    if (!manual) {
        settings = new Properties();
        for (final Field field : fields) {
            final String defaultValue = field.defaultValue;
            if (defaultValue != null) {
                settings.setProperty(field.propertyKey, defaultValue);
            }
        }
    } else {
        /*
             * If there is an URL in the property file, add it at the beginning
             * of the URL combo box.
             */
        final Field urlField = fields[0];
        final String value = settings.getProperty(urlField.propertyKey);
        if (value != null) {
            @SuppressWarnings("unchecked") final JComboBox<String> url = (JComboBox<String>) urlField.component;
            final DefaultComboBoxModel<String> model = (DefaultComboBoxModel<String>) url.getModel();
            if (!value.equals(model.getElementAt(0))) {
                model.insertElementAt(value, 0);
                hasExplicitURL = true;
            }
        }
        /*
             * Remember the original values. This will be used in order to detect
             * if a value has been edited, and consequently if we should enable or
             * disable the "Apply" button.
             */
        for (final Field field : fields) {
            field.setOriginalValue(settings.getProperty(field.propertyKey));
        }
    }
    // Set only on success.
    this.settings = settings;
    final JRadioButton mode = manual ? isManual : isAutomatic;
    if (mode != null) {
        mode.setSelected(true);
        isOriginalAutomatic = !manual;
    }
    // Refresh the fields.
    actionPerformed(null);
}
Example 9
Project: jeboorker-master  File: JImageDownloadDialog.java View source code
protected void init(final Frame owner, final IImageFetcherFactory factory) {
    if (factory.searchTermSupport()) {
        this.setSize(800, 375);
    } else {
        this.setSize(800, 330);
    }
    if (owner != null) {
        //center over the owner frame
        this.setLocation(owner.getBounds().x + owner.getBounds().width / 2 - this.getSize().width / 2, owner.getBounds().y + 50);
    }
    this.setTitle(Bundle.getString("ImageDownloadDialog.title"));
    this.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
    this.setGlassPane(new ShadowPanel());
    getGlassPane().setVisible(false);
    ((JComponent) getContentPane()).registerKeyboardAction(cancelAction, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW);
    //workaround for a swing bug. The first time, the editor is used, the
    //ui color instance draws the wrong color but have the right rgb values.
    Color color;
    color = SwingUtils.getSelectionForegroundColor();
    selectedFgColor = new Color(color.getRed(), color.getGreen(), color.getBlue());
    color = SwingUtils.getSelectionBackgroundColor();
    selectedBgColor = new Color(color.getRed(), color.getGreen(), color.getBlue());
    color = SwingUtils.getBackgroundColor();
    bgColor = new Color(color.getRed(), color.getGreen(), color.getBlue());
    color = SwingUtils.getForegroundColor();
    fgColor = new Color(color.getRed(), color.getGreen(), color.getBlue());
    GridBagLayout gridBagLayout = new GridBagLayout();
    gridBagLayout.columnWidths = new int[] { 0, 0 };
    gridBagLayout.rowHeights = new int[] { 0, 0 };
    gridBagLayout.columnWeights = new double[] { 1.0, Double.MIN_VALUE };
    gridBagLayout.rowWeights = new double[] { 1.0, Double.MIN_VALUE };
    getContentPane().setLayout(gridBagLayout);
    JPanel borderPanel = new JPanel();
    borderPanel.setBorder(new EmptyBorder(3, 3, 3, 3));
    GridBagConstraints gbc_borderPanel = new GridBagConstraints();
    gbc_borderPanel.fill = GridBagConstraints.BOTH;
    gbc_borderPanel.gridx = 0;
    gbc_borderPanel.gridy = 0;
    getContentPane().add(borderPanel, gbc_borderPanel);
    GridBagLayout gbl_borderPanel = new GridBagLayout();
    gbl_borderPanel.columnWidths = new int[] { 0, 340, 0, 0 };
    gbl_borderPanel.rowHeights = new int[] { 0, 0, 0, 0 };
    gbl_borderPanel.columnWeights = new double[] { 1.0, 1.0, 0.0, Double.MIN_VALUE };
    gbl_borderPanel.rowWeights = new double[] { 0.0, 1.0, 0.0, Double.MIN_VALUE };
    borderPanel.setLayout(gbl_borderPanel);
    if (factory.searchTermSupport()) {
        searchProviderComboBox = new JComboBox();
        GridBagConstraints gbc_searchProviderComboBox = new GridBagConstraints();
        gbc_searchProviderComboBox.insets = new Insets(0, 0, 5, 5);
        gbc_searchProviderComboBox.fill = GridBagConstraints.HORIZONTAL;
        gbc_searchProviderComboBox.gridx = 0;
        gbc_searchProviderComboBox.gridy = 0;
        borderPanel.add(searchProviderComboBox, gbc_searchProviderComboBox);
        searchProviderComboBox.setModel(new DefaultComboBoxModel(factory.getFetcherNames().toArray()));
        searchProviderComboBox.setSelectedIndex(previousImageFetcherComboboxEntry);
        searchTextField = new JTextField();
        GridBagConstraints gbc_searchTextField = new GridBagConstraints();
        gbc_searchTextField.fill = GridBagConstraints.BOTH;
        gbc_searchTextField.insets = new Insets(0, 0, 5, 5);
        gbc_searchTextField.gridx = 1;
        gbc_searchTextField.gridy = 0;
        borderPanel.add(searchTextField, gbc_searchTextField);
        searchTextField.setColumns(10);
        searchTextField.addKeyListener(new KeyAdapter() {

            @Override
            public void keyReleased(KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                    startSearch();
                }
            }
        });
        JButton searchButton = new JButton(new SearchAction());
        searchButton.setMargin(new Insets(0, 8, 0, 8));
        GridBagConstraints gbc_searchButton = new GridBagConstraints();
        gbc_searchButton.fill = GridBagConstraints.VERTICAL;
        gbc_searchButton.insets = new Insets(0, 0, 5, 0);
        gbc_searchButton.gridx = 2;
        gbc_searchButton.gridy = 0;
        borderPanel.add(searchButton, gbc_searchButton);
    }
    scrollPane = new JRScrollPane();
    scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
    scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
    GridBagConstraints gbc_scrollPane = new GridBagConstraints();
    gbc_scrollPane.gridwidth = 3;
    gbc_scrollPane.insets = new Insets(0, 0, 5, 0);
    gbc_scrollPane.fill = GridBagConstraints.BOTH;
    gbc_scrollPane.gridx = 0;
    gbc_scrollPane.gridy = 1;
    borderPanel.add(scrollPane, gbc_scrollPane);
    JPanel panel = new JPanel();
    panel.setLayout(new EqualsLayout(3));
    GridBagConstraints gbc_panel = new GridBagConstraints();
    gbc_panel.gridwidth = 3;
    gbc_panel.fill = GridBagConstraints.HORIZONTAL;
    gbc_panel.gridx = 0;
    gbc_panel.gridy = 2;
    borderPanel.add(panel, gbc_panel);
    JButton abortButton = new JButton(Bundle.getString("ImageDownloadDialog.Action.Cancel"));
    abortButton.setMargin(new Insets(2, 8, 2, 8));
    panel.add(abortButton);
    abortButton.addActionListener(cancelAction);
    okButton = new JButton(Bundle.getString("ImageDownloadDialog.Action.OK"));
    panel.add(okButton);
    okButton.addActionListener(okAction);
}
Example 10
Project: domainmath-ide-master  File: PkgDlg.java View source code
/** 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")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    jScrollPane1 = new javax.swing.JScrollPane();
    pkgList = new javax.swing.JList();
    UnLoadButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    listButton = new javax.swing.JButton();
    unloadAllButton = new javax.swing.JButton();
    UnInstallButton = new javax.swing.JButton();
    loadButton = new javax.swing.JButton();
    loadAllButton = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    pathField = new javax.swing.JTextField();
    browseButton = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    optionsCombo = new javax.swing.JComboBox();
    genButton = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle(" Package");
    // NOI18N
    setName("UnInstdialog");
    pkgList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    pkgList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {

        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            pkgListValueChanged(evt);
        }
    });
    jScrollPane1.setViewportView(pkgList);
    UnLoadButton.setText("Unload");
    UnLoadButton.setEnabled(false);
    UnLoadButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            UnLoadButtonActionPerformed(evt);
        }
    });
    cancelButton.setText("Close");
    cancelButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });
    listButton.setText("List");
    listButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            listButtonActionPerformed(evt);
        }
    });
    unloadAllButton.setText("Unload All");
    unloadAllButton.setEnabled(false);
    unloadAllButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            unloadAllButtonActionPerformed(evt);
        }
    });
    UnInstallButton.setText("Uninstall");
    UnInstallButton.setEnabled(false);
    UnInstallButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            UnInstallButtonActionPerformed(evt);
        }
    });
    loadButton.setText("Load");
    loadButton.setEnabled(false);
    loadButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loadButtonActionPerformed(evt);
        }
    });
    loadAllButton.setText("Load All");
    loadAllButton.setEnabled(false);
    loadAllButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loadAllButtonActionPerformed(evt);
        }
    });
    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Generate doc"));
    jLabel1.setText("Output directory:");
    browseButton.setText("Browse");
    browseButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            browseButtonActionPerformed(evt);
        }
    });
    jLabel2.setText("Options:");
    optionsCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "octave-forge", "octave", "docbrowser" }));
    genButton.setText("Generate");
    genButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            genButtonActionPerformed(evt);
        }
    });
    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel1).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(pathField, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE).addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(optionsCombo, 0, 286, Short.MAX_VALUE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(genButton, javax.swing.GroupLayout.Alignment.TRAILING).addComponent(browseButton, javax.swing.GroupLayout.Alignment.TRAILING))));
    jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { browseButton, genButton });
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel1).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(pathField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(browseButton)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2).addComponent(optionsCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(genButton)).addContainerGap(25, Short.MAX_VALUE)));
    jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { browseButton, genButton });
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().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.TRAILING).addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(layout.createSequentialGroup().addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(UnInstallButton).addComponent(listButton).addComponent(cancelButton)).addComponent(loadAllButton)).addComponent(loadButton)).addComponent(UnLoadButton)).addComponent(unloadAllButton)))).addContainerGap()));
    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { UnInstallButton, UnLoadButton, cancelButton, listButton, loadAllButton, loadButton, unloadAllButton });
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE).addGroup(layout.createSequentialGroup().addComponent(listButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(UnInstallButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 142, Short.MAX_VALUE).addComponent(loadButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(loadAllButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(UnLoadButton).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(unloadAllButton).addGap(18, 18, 18).addComponent(cancelButton))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(26, 26, 26)));
    layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { UnInstallButton, UnLoadButton, cancelButton, listButton, loadAllButton, loadButton, unloadAllButton });
    pack();
}
Example 11
Project: jade_agents-master  File: InstallMTPDialog.java View source code
/** 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 FormEditor.
   */
private void initComponents() {
    //GEN-BEGIN:initComponents
    topPanel = new javax.swing.JPanel();
    containerLabel = new javax.swing.JLabel();
    // The list is initialized with a long string, to force a wide enough JComboBox
    containerList = new javax.swing.DefaultComboBoxModel(new String[] { "              " });
    containerChoice = new javax.swing.JComboBox(containerList);
    classLabel = new javax.swing.JLabel();
    classField = new javax.swing.JTextField();
    addressLabel = new javax.swing.JLabel();
    addressField = new javax.swing.JTextField();
    bottomPanel = new javax.swing.JPanel();
    buttonOK = new javax.swing.JButton();
    buttonCancel = new javax.swing.JButton();
    setResizable(false);
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Install a new MTP");
    setModal(true);
    setName("installMTPDlg");
    addWindowListener(new java.awt.event.WindowAdapter() {

        public void windowClosing(java.awt.event.WindowEvent evt) {
            closeDialog(evt);
        }
    });
    topPanel.setLayout(new java.awt.GridLayout(3, 2, 10, 2));
    topPanel.setBorder(new javax.swing.border.CompoundBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)), new javax.swing.border.CompoundBorder(new javax.swing.border.BevelBorder(1), new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)))));
    containerLabel.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    containerLabel.setText("Container:");
    containerLabel.setFont(new java.awt.Font("Dialog", 1, 12));
    topPanel.add(containerLabel);
    containerChoice.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    containerChoice.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12));
    topPanel.add(containerChoice);
    classLabel.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    classLabel.setText("Class Name:");
    classLabel.setFont(new java.awt.Font("Dialog", 1, 12));
    topPanel.add(classLabel);
    classField.setToolTipText("Write here the name of the class implementing the MTP");
    topPanel.add(classField);
    addressLabel.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    addressLabel.setText("Address:");
    addressLabel.setFont(new java.awt.Font("Dialog", 1, 12));
    topPanel.add(addressLabel);
    addressField.setToolTipText("Write here the MTP address, if needed");
    topPanel.add(addressField);
    getContentPane().add(topPanel, java.awt.BorderLayout.CENTER);
    bottomPanel.setLayout(new java.awt.GridLayout(1, 2, 10, 0));
    bottomPanel.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)));
    buttonOK.setText("OK");
    buttonOK.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonOKActionPerformed(evt);
        }
    });
    bottomPanel.add(buttonOK);
    buttonCancel.setText("Cancel");
    buttonCancel.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonCancelActionPerformed(evt);
        }
    });
    bottomPanel.add(buttonCancel);
    getContentPane().add(bottomPanel, java.awt.BorderLayout.SOUTH);
}
Example 12
Project: jprol-master  File: FontChooserDialog.java View source code
/**
   * 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", "rawtypes" })
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    jPanel1 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    LabelPreview = new javax.swing.JTextArea();
    SpinnerSize = new javax.swing.JSpinner();
    ComboBoxFont = new javax.swing.JComboBox();
    ComboBoxStyle = new javax.swing.JComboBox();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    buttonOk = new javax.swing.JButton();
    buttonCancel = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Font");
    setLocationByPlatform(true);
    setResizable(false);
    getContentPane().setLayout(new java.awt.GridBagLayout());
    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Preview"));
    jPanel1.setLayout(new java.awt.BorderLayout());
    LabelPreview.setColumns(20);
    LabelPreview.setRows(5);
    jScrollPane1.setViewportView(LabelPreview);
    jPanel1.add(jScrollPane1, java.awt.BorderLayout.CENTER);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1000.0;
    gridBagConstraints.weighty = 1000.0;
    gridBagConstraints.insets = new java.awt.Insets(8, 0, 0, 0);
    getContentPane().add(jPanel1, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 8);
    getContentPane().add(SpinnerSize, gridBagConstraints);
    ComboBoxFont.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 8, 0, 16);
    getContentPane().add(ComboBoxFont, gridBagConstraints);
    ComboBoxStyle.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 16);
    getContentPane().add(ComboBoxStyle, gridBagConstraints);
    jLabel1.setText("Font");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(0, 8, 0, 16);
    getContentPane().add(jLabel1, gridBagConstraints);
    jLabel2.setText("Style");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 16);
    getContentPane().add(jLabel2, gridBagConstraints);
    jLabel3.setText("Size");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 8);
    getContentPane().add(jLabel3, gridBagConstraints);
    jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
    buttonOk.setText("Ok");
    buttonOk.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonOkActionPerformed(evt);
        }
    });
    jPanel2.add(buttonOk);
    buttonCancel.setText("Cancel");
    buttonCancel.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonCancelActionPerformed(evt);
        }
    });
    jPanel2.add(buttonCancel);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    getContentPane().add(jPanel2, gridBagConstraints);
    pack();
}
Example 13
Project: GdxStudio-master  File: Hiero.java View source code
private void initializeComponents() {
    getContentPane().setLayout(new GridBagLayout());
    JPanel leftSidePanel = new JPanel();
    leftSidePanel.setLayout(new GridBagLayout());
    getContentPane().add(leftSidePanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    {
        JPanel fontPanel = new JPanel();
        leftSidePanel.add(fontPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
        fontPanel.setLayout(new GridBagLayout());
        fontPanel.setBorder(BorderFactory.createTitledBorder("Font"));
        {
            fontSizeSpinner = new JSpinner(new SpinnerNumberModel(32, 0, 256, 1));
            fontPanel.add(fontSizeSpinner, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            ((JSpinner.DefaultEditor) fontSizeSpinner.getEditor()).getTextField().setColumns(2);
        }
        {
            JScrollPane fontScroll = new JScrollPane();
            fontPanel.add(fontScroll, new GridBagConstraints(1, 1, 4, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));
            {
                fontListModel = new DefaultComboBoxModel(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
                fontList = new JList();
                fontScroll.setViewportView(fontList);
                fontList.setModel(fontListModel);
                fontList.setVisibleRowCount(6);
                fontList.setSelectedIndex(0);
                fontScroll.setMinimumSize(new Dimension(220, fontList.getPreferredScrollableViewportSize().height));
            }
        }
        {
            systemFontRadio = new JRadioButton("System:", true);
            fontPanel.add(systemFontRadio, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHEAST, GridBagConstraints.NONE, new Insets(0, 5, 0, 5), 0, 0));
            systemFontRadio.setMargin(new Insets(0, 0, 0, 0));
        }
        {
            fontFileRadio = new JRadioButton("File:");
            fontPanel.add(fontFileRadio, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            fontFileRadio.setMargin(new Insets(0, 0, 0, 0));
        }
        {
            fontFileText = new JTextField();
            fontPanel.add(fontFileText, new GridBagConstraints(1, 2, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));
        }
        {
            fontPanel.add(new JLabel("Size:"), new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
        {
            boldCheckBox = new JCheckBox("Bold");
            fontPanel.add(boldCheckBox, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
        {
            italicCheckBox = new JCheckBox("Italic");
            fontPanel.add(italicCheckBox, new GridBagConstraints(3, 3, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
        {
            browseButton = new JButton("...");
            fontPanel.add(browseButton, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            browseButton.setMargin(new Insets(0, 0, 0, 0));
        }
        {
            fontPanel.add(new JLabel("Rendering:"), new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
        {
            javaRadio = new JRadioButton("Java");
            fontPanel.add(javaRadio, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            javaRadio.setSelected(true);
        }
        {
            nativeRadio = new JRadioButton("Native");
            fontPanel.add(nativeRadio, new GridBagConstraints(2, 4, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
        ButtonGroup buttonGroup = new ButtonGroup();
        buttonGroup.add(systemFontRadio);
        buttonGroup.add(fontFileRadio);
        buttonGroup = new ButtonGroup();
        buttonGroup.add(javaRadio);
        buttonGroup.add(nativeRadio);
    }
    {
        JPanel samplePanel = new JPanel();
        leftSidePanel.add(samplePanel, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 0, 5, 5), 0, 0));
        samplePanel.setLayout(new GridBagLayout());
        samplePanel.setBorder(BorderFactory.createTitledBorder("Sample Text"));
        {
            JScrollPane textScroll = new JScrollPane();
            samplePanel.add(textScroll, new GridBagConstraints(0, 0, 3, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0));
            {
                sampleTextPane = new JTextPane();
                textScroll.setViewportView(sampleTextPane);
            }
        }
        {
            sampleNeheButton = new JButton();
            sampleNeheButton.setText("NEHE");
            samplePanel.add(sampleNeheButton, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
        {
            sampleAsciiButton = new JButton();
            sampleAsciiButton.setText("ASCII");
            samplePanel.add(sampleAsciiButton, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
        }
    }
    {
        JPanel renderingPanel = new JPanel();
        leftSidePanel.add(renderingPanel, new GridBagConstraints(0, 1, 2, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0));
        renderingPanel.setBorder(BorderFactory.createTitledBorder("Rendering"));
        renderingPanel.setLayout(new GridBagLayout());
        {
            JPanel wrapperPanel = new JPanel();
            renderingPanel.add(wrapperPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 5, 5), 0, 0));
            wrapperPanel.setLayout(new BorderLayout());
            wrapperPanel.setBackground(java.awt.Color.white);
            {
                gamePanel = new JPanel();
                wrapperPanel.add(gamePanel);
                gamePanel.setLayout(new BorderLayout());
                gamePanel.setBackground(java.awt.Color.white);
            }
        }
        {
            glyphCachePanel = new JPanel() {

                private int maxWidth;

                public Dimension getPreferredSize() {
                    // Keep glyphCachePanel width from ever going down so the CanvasGameContainer doesn't change sizes and flicker.
                    Dimension size = super.getPreferredSize();
                    maxWidth = Math.max(maxWidth, size.width);
                    size.width = maxWidth;
                    return size;
                }
            };
            glyphCachePanel.setVisible(false);
            renderingPanel.add(glyphCachePanel, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
            glyphCachePanel.setLayout(new GridBagLayout());
            {
                glyphCachePanel.add(new JLabel("Glyphs:"), new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
            {
                glyphCachePanel.add(new JLabel("Pages:"), new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
            {
                glyphCachePanel.add(new JLabel("Page width:"), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
            {
                glyphCachePanel.add(new JLabel("Page height:"), new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
            {
                glyphPageWidthCombo = new JComboBox(new DefaultComboBoxModel(new Integer[] { new Integer(32), new Integer(64), new Integer(128), new Integer(256), new Integer(512), new Integer(1024), new Integer(2048) }));
                glyphCachePanel.add(glyphPageWidthCombo, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
                glyphPageWidthCombo.setSelectedIndex(4);
            }
            {
                glyphPageHeightCombo = new JComboBox(new DefaultComboBoxModel(new Integer[] { new Integer(32), new Integer(64), new Integer(128), new Integer(256), new Integer(512), new Integer(1024), new Integer(2048) }));
                glyphCachePanel.add(glyphPageHeightCombo, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
                glyphPageHeightCombo.setSelectedIndex(4);
            }
            {
                resetCacheButton = new JButton("Reset Cache");
                glyphCachePanel.add(resetCacheButton, new GridBagConstraints(0, 6, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
            {
                glyphPagesTotalLabel = new JLabel("1");
                glyphCachePanel.add(glyphPagesTotalLabel, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            }
            {
                glyphsTotalLabel = new JLabel("0");
                glyphCachePanel.add(glyphsTotalLabel, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            }
            {
                glyphPageComboModel = new DefaultComboBoxModel();
                glyphPageCombo = new JComboBox();
                glyphCachePanel.add(glyphPageCombo, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
                glyphPageCombo.setModel(glyphPageComboModel);
            }
            {
                glyphCachePanel.add(new JLabel("View:"), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
        }
        {
            JPanel radioButtonsPanel = new JPanel();
            renderingPanel.add(radioButtonsPanel, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
            radioButtonsPanel.setLayout(new GridBagLayout());
            {
                sampleTextRadio = new JRadioButton("Sample text");
                radioButtonsPanel.add(sampleTextRadio, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
                sampleTextRadio.setSelected(true);
            }
            {
                glyphCacheRadio = new JRadioButton("Glyph cache");
                radioButtonsPanel.add(glyphCacheRadio, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            }
            {
                radioButtonsPanel.add(new JLabel("Background:"), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0));
            }
            {
                backgroundColorLabel = new JLabel();
                radioButtonsPanel.add(backgroundColorLabel, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 5), 0, 0));
            }
            ButtonGroup buttonGroup = new ButtonGroup();
            buttonGroup.add(glyphCacheRadio);
            buttonGroup.add(sampleTextRadio);
        }
    }
    JPanel rightSidePanel = new JPanel();
    rightSidePanel.setLayout(new GridBagLayout());
    getContentPane().add(rightSidePanel, new GridBagConstraints(1, 0, 1, 2, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    {
        JPanel paddingPanel = new JPanel();
        paddingPanel.setLayout(new GridBagLayout());
        rightSidePanel.add(paddingPanel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));
        paddingPanel.setBorder(BorderFactory.createTitledBorder("Padding"));
        {
            padTopSpinner = new JSpinner();
            paddingPanel.add(padTopSpinner, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
            ((JSpinner.DefaultEditor) padTopSpinner.getEditor()).getTextField().setColumns(2);
        }
        {
            padRightSpinner = new JSpinner();
            paddingPanel.add(padRightSpinner, new GridBagConstraints(2, 2, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0));
            ((JSpinner.DefaultEditor) padRightSpinner.getEditor()).getTextField().setColumns(2);
        }
        {
            padLeftSpinner = new JSpinner();
            paddingPanel.add(padLeftSpinner, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 0, 0), 0, 0));
            ((JSpinner.DefaultEditor) padLeftSpinner.getEditor()).getTextField().setColumns(2);
        }
        {
            padBottomSpinner = new JSpinner();
            paddingPanel.add(padBottomSpinner, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
            ((JSpinner.DefaultEditor) padBottomSpinner.getEditor()).getTextField().setColumns(2);
        }
        {
            JPanel advancePanel = new JPanel();
            FlowLayout advancePanelLayout = new FlowLayout();
            advancePanel.setLayout(advancePanelLayout);
            paddingPanel.add(advancePanel, new GridBagConstraints(0, 4, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
            {
                advancePanel.add(new JLabel("X:"));
            }
            {
                padAdvanceXSpinner = new JSpinner();
                advancePanel.add(padAdvanceXSpinner);
                ((JSpinner.DefaultEditor) padAdvanceXSpinner.getEditor()).getTextField().setColumns(2);
            }
            {
                advancePanel.add(new JLabel("Y:"));
            }
            {
                padAdvanceYSpinner = new JSpinner();
                advancePanel.add(padAdvanceYSpinner);
                ((JSpinner.DefaultEditor) padAdvanceYSpinner.getEditor()).getTextField().setColumns(2);
            }
        }
    }
    {
        JPanel effectsPanel = new JPanel();
        effectsPanel.setLayout(new GridBagLayout());
        rightSidePanel.add(effectsPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 0, 5, 5), 0, 0));
        effectsPanel.setBorder(BorderFactory.createTitledBorder("Effects"));
        effectsPanel.setMinimumSize(new Dimension(210, 1));
        {
            JScrollPane effectsScroll = new JScrollPane();
            effectsPanel.add(effectsScroll, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0));
            {
                effectsListModel = new DefaultComboBoxModel();
                effectsList = new JList();
                effectsScroll.setViewportView(effectsList);
                effectsList.setModel(effectsListModel);
                effectsList.setVisibleRowCount(7);
                effectsScroll.setMinimumSize(effectsList.getPreferredScrollableViewportSize());
            }
        }
        {
            addEffectButton = new JButton("Add");
            effectsPanel.add(addEffectButton, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 5, 6, 5), 0, 0));
            addEffectButton.setEnabled(false);
        }
        {
            appliedEffectsScroll = new JScrollPane();
            effectsPanel.add(appliedEffectsScroll, new GridBagConstraints(1, 3, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));
            appliedEffectsScroll.setBorder(new EmptyBorder(0, 0, 0, 0));
            appliedEffectsScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
            {
                JPanel panel = new JPanel();
                panel.setLayout(new GridBagLayout());
                appliedEffectsScroll.setViewportView(panel);
                {
                    appliedEffectsPanel = new JPanel();
                    appliedEffectsPanel.setLayout(new GridBagLayout());
                    panel.add(appliedEffectsPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
                    appliedEffectsPanel.setBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, java.awt.Color.black));
                }
            }
        }
    }
}
Example 14
Project: freemind-mmx-master  File: AssignAttributeDialog.java View source code
private void attributesChanged() {
    AttributeRegistry attributes = mapView.getModel().getRegistry().getAttributes();
    ComboBoxModel names = attributes.getComboBoxModel();
    attributeNames.setModel(new ClonedComboBoxModel(names));
    attributeNames.setEditable(!attributes.isRestricted());
    replacingAttributeNames.setModel(new ClonedComboBoxModel(names));
    replacingAttributeNames.setEditable(!attributes.isRestricted());
    if (attributes.size() > 0) {
        Object first = names.getElementAt(0);
        attributeNames.setSelectedItem(first);
        replacingAttributeNames.setSelectedItem(first);
        selectedAttributeChanged(attributeNames.getSelectedItem(), attributeValues);
        selectedAttributeChanged(replacingAttributeNames.getSelectedItem(), replacingAttributeValues);
    } else {
        attributeValues.setModel(new DefaultComboBoxModel());
        attributeValues.setEditable(false);
        replacingAttributeValues.setModel(new DefaultComboBoxModel());
        replacingAttributeValues.setEditable(false);
    }
}
Example 15
Project: openjdk-master  File: bug7072653.java View source code
private static void setup(String lookAndFeelString) throws Exception {
    frame = new JFrame("JComboBox Test " + lookAndFeelString);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(320, 200);
    frame.getContentPane().setLayout(new FlowLayout());
    frame.setLocationRelativeTo(null);
    combobox = new JComboBox(new DefaultComboBoxModel() {

        @Override
        public Object getElementAt(int index) {
            return "Element " + index;
        }

        @Override
        public int getSize() {
            return 100;
        }
    });
    combobox.setMaximumRowCount(100);
    frame.getContentPane().add(combobox);
    frame.setVisible(true);
    combobox.addPopupMenuListener(new PopupMenuListener() {

        @Override
        public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
        }

        @Override
        public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
            int height = 0;
            for (Window window : JFrame.getWindows()) {
                if (Window.Type.POPUP == window.getType()) {
                    height = window.getSize().height;
                    break;
                }
            }
            GraphicsConfiguration gc = combobox.getGraphicsConfiguration();
            Insets screenInsets = Toolkit.getDefaultToolkit().getScreenInsets(gc);
            int gcHeight = gc.getBounds().height;
            if (lookAndFeelString.contains("aqua")) {
                gcHeight = gcHeight - screenInsets.top;
            //For Aqua LAF
            } else {
                gcHeight = gcHeight - screenInsets.top - screenInsets.bottom;
            }
            if (height == gcHeight) {
                return;
            }
            String exception = "Popup window height " + "For LookAndFeel" + lookAndFeelString + " is wrong" + "\nShould be " + height + "Actually " + gcHeight;
            errorString += exception;
        }

        @Override
        public void popupMenuCanceled(PopupMenuEvent e) {
        }
    });
}
Example 16
Project: pcgen-master  File: NameGenPanel.java View source code
//GEN-LAST:event_jButton1ActionPerformed
private void loadCatalogDD() {
    try {
        String catKey = (String) cbCategory.getSelectedItem();
        String sexKey = (String) cbSex.getSelectedItem();
        RuleSet oldRS = (RuleSet) cbCatalog.getSelectedItem();
        String catalogKey = "";
        if (oldRS != null) {
            catalogKey = oldRS.getTitle();
        }
        List<RuleSet> cats = categories.get(catKey);
        List<RuleSet> sexes = categories.get("Sex: " + sexKey);
        List<RuleSet> join = new ArrayList<>();
        join.addAll(cats);
        join.retainAll(sexes);
        join.sort(new DataElementComperator());
        Vector<RuleSet> catalogs = new Vector<>();
        int oldSelected = -1;
        int n = 0;
        for (int i = 0; i < join.size(); i++) {
            RuleSet rs = join.get(i);
            if (rs.getUsage().equals("final")) {
                catalogs.add(rs);
                if (rs.getTitle().equals(catalogKey)) {
                    oldSelected = n;
                }
                n++;
            }
        }
        DefaultComboBoxModel catalogModel = new DefaultComboBoxModel(catalogs);
        cbCatalog.setModel(catalogModel);
        if (oldSelected >= 0)
            cbCatalog.setSelectedIndex(oldSelected);
    } catch (Exception e) {
        Logging.errorPrint(e.getMessage(), e);
    }
}
Example 17
Project: NemoVelo-master  File: TerminalReturnBikesPanel.java View source code
private void initialize(int bikeIndex) {
    GridBagConstraints gbc;
    this.bikeIndex = bikeIndex;
    GridBagLayout gbl = new GridBagLayout();
    {
        gbl.columnWidths = new int[] { 0, 0, 0 };
        gbl.rowHeights = new int[] { 0, 0 };
        gbl.columnWeights = new double[] { 0.0, 1.0, Double.MIN_VALUE };
        gbl.rowWeights = new double[] { 1.0, Double.MIN_VALUE };
    }
    setLayout(gbl);
    JLabel lblBikeNumber = new JLabel("Vélo " + (this.bikeIndex + 1) + ", N° de série : ");
    //Position
    {
        gbc = new GridBagConstraints();
        gbc.fill = GridBagConstraints.VERTICAL;
        gbc.insets = new Insets(0, TerminalMainFrame.HORIZONTAL_GAP, 0, TerminalMainFrame.HORIZONTAL_GAP);
        gbc.anchor = GridBagConstraints.EAST;
        gbc.gridx = 0;
        gbc.gridy = 0;
    }
    this.add(lblBikeNumber, gbc);
    this.comboBikeSerialNumber = new JComboBox();
    {
        lblBikeNumber.setLabelFor(this.comboBikeSerialNumber);
        this.comboBikeSerialNumber.setModel(new DefaultComboBoxModel(rentedBikeSerialNumbers));
        //Position
        {
            gbc = new GridBagConstraints();
            gbc.fill = GridBagConstraints.BOTH;
            gbc.gridx = 1;
            gbc.gridy = 0;
        }
    }
    this.add(comboBikeSerialNumber, gbc);
}
Example 18
Project: UnicentaPOS_AD-master  File: PromoEditor.java View source code
/**
     * 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")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    m_jName = new javax.swing.JTextField();
    m_jArticle = new javax.swing.JTextField();
    m_jBonusArticle = new javax.swing.JTextField();
    m_jCategory = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    m_jStartDate = new javax.swing.JTextField();
    m_jStartHour = new javax.swing.JTextField();
    m_jType = new javax.swing.JComboBox();
    m_jProdName = new javax.swing.JTextField();
    m_jCatName = new javax.swing.JComboBox();
    m_jAmount = new javax.swing.JTextField();
    m_jMin = new javax.swing.JTextField();
    m_jStepAmount = new javax.swing.JTextField();
    m_jStepQty = new javax.swing.JTextField();
    m_jBonusProd = new javax.swing.JTextField();
    btnValidTo = new javax.swing.JButton();
    m_jEndDate = new javax.swing.JTextField();
    btnValidFrom = new javax.swing.JButton();
    m_jEndHour = new javax.swing.JTextField();
    m_jSearch = new javax.swing.JButton();
    m_jMax = new javax.swing.JTextField();
    m_jSearch1 = new javax.swing.JButton();
    // NOI18N
    setFont(new java.awt.Font("Arial", 0, 12));
    // NOI18N
    m_jName.setFont(new java.awt.Font("Arial", 0, 12));
    m_jName.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
    m_jName.setMaximumSize(new java.awt.Dimension(110, 28));
    m_jName.setMinimumSize(new java.awt.Dimension(110, 28));
    m_jName.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jArticle.setFont(new java.awt.Font("Arial", 0, 12));
    m_jArticle.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jBonusArticle.setFont(new java.awt.Font("Arial", 0, 12));
    m_jBonusArticle.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jCategory.setFont(new java.awt.Font("Arial", 0, 12));
    m_jCategory.setPreferredSize(new java.awt.Dimension(110, 28));
    m_jCategory.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            m_jCategoryPropertyChange(evt);
        }
    });
    // NOI18N
    jLabel1.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel1.setText("<html><b>Name</b>");
    jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
    jLabel1.setPreferredSize(new java.awt.Dimension(150, 28));
    // NOI18N
    jLabel2.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel2.setText("Date");
    jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
    // NOI18N
    jLabel3.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel3.setText("Time");
    // NOI18N
    jLabel4.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel4.setText("Discount");
    // NOI18N
    jLabel5.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel5.setText("Product");
    // NOI18N
    jLabel6.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel6.setText("Product Category");
    // NOI18N
    jLabel7.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel7.setText("Amount");
    // NOI18N
    jLabel8.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel8.setText("Min / Max");
    // NOI18N
    jLabel9.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel9.setText("Step Amount");
    // NOI18N
    jLabel10.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel10.setText("Quantity");
    // NOI18N
    jLabel11.setFont(new java.awt.Font("Arial", 0, 12));
    jLabel11.setText("Bonus Article");
    jLabel11.setMaximumSize(new java.awt.Dimension(62, 18));
    jLabel11.setMinimumSize(new java.awt.Dimension(62, 18));
    jLabel11.setPreferredSize(new java.awt.Dimension(62, 18));
    // NOI18N
    m_jStartDate.setFont(new java.awt.Font("Arial", 0, 12));
    // NOI18N
    m_jStartHour.setFont(new java.awt.Font("Arial", 0, 12));
    m_jStartHour.setPreferredSize(new java.awt.Dimension(110, 28));
    m_jType.setPreferredSize(new java.awt.Dimension(210, 25));
    // NOI18N
    m_jProdName.setFont(new java.awt.Font("Arial", 0, 12));
    m_jCatName.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    m_jCatName.setPreferredSize(new java.awt.Dimension(56, 25));
    m_jCatName.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jCatNameActionPerformed(evt);
        }
    });
    // NOI18N
    m_jAmount.setFont(new java.awt.Font("Arial", 0, 12));
    m_jAmount.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jMin.setFont(new java.awt.Font("Arial", 0, 12));
    m_jMin.setPreferredSize(new java.awt.Dimension(68, 28));
    // NOI18N
    m_jStepAmount.setFont(new java.awt.Font("Arial", 0, 12));
    m_jStepAmount.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jStepQty.setFont(new java.awt.Font("Arial", 0, 12));
    m_jStepQty.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jBonusProd.setFont(new java.awt.Font("Arial", 0, 12));
    // NOI18N
    btnValidTo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/date.png")));
    btnValidTo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnValidToActionPerformed(evt);
        }
    });
    // NOI18N
    m_jEndDate.setFont(new java.awt.Font("Arial", 0, 12));
    // NOI18N
    btnValidFrom.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/date.png")));
    btnValidFrom.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnValidFromActionPerformed(evt);
        }
    });
    // NOI18N
    m_jEndHour.setFont(new java.awt.Font("Arial", 0, 12));
    m_jEndHour.setPreferredSize(new java.awt.Dimension(110, 28));
    // NOI18N
    m_jSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/search24.png")));
    m_jSearch.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jSearchActionPerformed(evt);
        }
    });
    // NOI18N
    m_jMax.setFont(new java.awt.Font("Arial", 0, 12));
    // NOI18N
    m_jSearch1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/search24.png")));
    m_jSearch1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jSearch1ActionPerformed(evt);
        }
    });
    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().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE).addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(m_jArticle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jBonusArticle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jCategory, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(m_jAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(layout.createSequentialGroup().addComponent(m_jMin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jMax, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(m_jStepAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(m_jStartHour, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jEndHour, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(m_jStartDate, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(layout.createSequentialGroup().addGap(116, 116, 116).addComponent(btnValidFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(18, 18, 18).addComponent(m_jEndDate, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(m_jProdName, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jCatName, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jType, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(btnValidTo, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(m_jStepQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jBonusProd, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jSearch1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGroup(layout.createSequentialGroup().addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jName, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 19, Short.MAX_VALUE)))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jStartDate, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(btnValidFrom)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jStartHour, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jEndHour, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(m_jEndDate, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(btnValidTo)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(m_jSearch).addComponent(m_jProdName, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(m_jCatName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(m_jAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jMin, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jMax, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jStepAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(m_jStepQty, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(m_jBonusProd, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))).addComponent(m_jSearch1)).addGap(14, 14, 14).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(m_jArticle, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jBonusArticle, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(m_jCategory, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)).addContainerGap()));
}
Example 19
Project: gluu-opendj-master  File: Utilities.java View source code
/**
   * Updates a combo box model with a number of items.
   * The method assumes that is being called from the event thread.
   * @param newElements the new items for the combo box model.
   * @param model the combo box model to be updated.
   * @param comparator the object that will be used to compare the objects in
   * the model.  If <CODE>null</CODE>, the equals method will be used.
   */
public static void updateComboBoxModel(Collection<?> newElements, DefaultComboBoxModel model, Comparator<Object> comparator) {
    boolean changed = newElements.size() != model.getSize();
    if (!changed) {
        int i = 0;
        for (Object newElement : newElements) {
            if (comparator == null) {
                changed = !newElement.equals(model.getElementAt(i));
            } else {
                changed = comparator.compare(newElement, model.getElementAt(i)) != 0;
            }
            if (changed) {
                break;
            }
            i++;
        }
    }
    if (changed) {
        Object selected = model.getSelectedItem();
        model.removeAllElements();
        boolean selectDefault = false;
        for (Object newElement : newElements) {
            model.addElement(newElement);
        }
        if (selected != null) {
            if (model.getIndexOf(selected) != -1) {
                model.setSelectedItem(selected);
            } else {
                selectDefault = true;
            }
        } else {
            selectDefault = true;
        }
        if (selectDefault) {
            for (int i = 0; i < model.getSize(); i++) {
                Object o = model.getElementAt(i);
                if (o instanceof CategorizedComboBoxElement) {
                    if (((CategorizedComboBoxElement) o).getType() == CategorizedComboBoxElement.Type.CATEGORY) {
                        continue;
                    }
                }
                model.setSelectedItem(o);
                break;
            }
        }
    }
}
Example 20
Project: statalign-master  File: DataButtonGroup.java View source code
public void updateGUI() {
    int n = PPfoldMain.datainfo.size();
    String[] datalabels = new String[n];
    for (int i = 0; i < n; i++) {
        String datatype = "data";
        DataInfo datainfo = PPfoldMain.datainfo.get(i);
        if (datainfo.getType() == 0) {
            datatype = "(Probing data)";
        } else if (datainfo.getType() == 1) {
            datatype = "(Probability data)";
        } else {
            datatype = "(Constraint data)";
        }
        datalabels[i] = new String(PPfoldMain.datainfo.get(i).getiD() + " " + datatype);
    }
    final DefaultComboBoxModel model = new DefaultComboBoxModel(datalabels);
    chooser.setModel(model);
    chooser.setSelectedIndex(n - 1);
    chooser.updateUI();
}
Example 21
Project: ProjectLibre-master  File: ComponentFactory.java View source code
private static JComponent componentFor(final Field field, Object value, boolean readOnly) {
    JComponent component = null;
    Range range = field.getRange();
    JTextComponent text = null;
    if (value instanceof Boolean) {
        component = new JCheckBox(field.getName(), ((Boolean) value).booleanValue());
    } else if (readOnly) {
        if (field.isHyperlink())
            component = new LinkLabel((Hyperlink) value);
        else
            component = new JLabel();
    } else if (field.isDate()) {
        ExtDateField d = createDateField(field);
        Object o = d.getComponents();
        d.getFormattedTextField().addActionListener(new FieldVerifier.VerifierListener());
        component = d;
        text = (JTextComponent) verifiedComponent(component);
    //			text.setEnabled(false);
    } else if (field.getLookupTypes() != null) {
        component = new LookupField(field, null);
    } else if (field.hasOptions()) {
        final JComboBox combo = new JComboBox(field.getOptions(null));
        //			if ("Field.accessControlPolicy".equals(field.getId())){
        //				combo.setInputVerifier(new InputVerifier(){
        //					@Override
        //					public boolean verify(JComponent input) {
        //						return Alert.okCancel(Messages.getString("Text.resetRoles"));
        //					}
        //				});
        //			}
        //			else 
        combo.addActionListener(new FieldVerifier.VerifierListener());
        component = combo;
        // if the combo can change dynamically, need to rebuild the combo dynamically
        if (field.isDynamicOptions()) {
            combo.getComponent(0).addMouseListener(new MouseListener() {

                public void mouseClicked(MouseEvent arg0) {
                }

                public void mouseEntered(MouseEvent arg0) {
                }

                public void mouseExited(MouseEvent arg0) {
                }

                public void mousePressed(MouseEvent arg0) {
                    combo.setModel(new DefaultComboBoxModel(field.getOptions(null)));
                    combo.showPopup();
                }

                public void mouseReleased(MouseEvent arg0) {
                }
            });
        }
    } else if (range != null) {
        component = SpinEditor.getJSpinnerInstance(field, ((Number) value).doubleValue(), false);
        final JSpinner spinner = (JSpinner) component;
        text = getSpinnerTextField(spinner);
        final JTextComponent t = text;
        ((JSpinner) component).addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent arg0) {
                FieldVerifier v = (FieldVerifier) t.getInputVerifier();
                boolean same = true;
                if (v != null) {
                    Number spinnerValue = (Number) spinner.getValue();
                    if (spinnerValue == null)
                        return;
                    double spin = MathUtils.roundToDecentPrecision(spinnerValue.doubleValue());
                    if (v == null || v.getValue() == null)
                        same = false;
                    else
                        same = spin == ((Number) v.getValue()).doubleValue();
                }
                t.setForeground(same ? Color.BLACK : Color.BLUE);
            }
        });
    } else {
        if (field.isMemo()) {
            text = new JTextArea();
            component = new JScrollPane(text);
        } else {
            text = new JTextField();
            int width = field.getTextWidth(null, null);
            if (width != Integer.MAX_VALUE) {
                ((AbstractDocument) text.getDocument()).setDocumentFilter(new FixedSizeFilter(width));
            }
            component = text;
        }
    }
    if (text != null) {
        text.addKeyListener(new KeyListener() {

            public void keyPressed(KeyEvent arg0) {
            }

            public void keyReleased(KeyEvent arg0) {
            }

            public void keyTyped(KeyEvent arg0) {
                JTextComponent textComponent = (JTextComponent) arg0.getComponent();
                textComponent.setForeground(Color.BLUE);
                FieldDialog parentFieldDialog = getParentFieldDialog(textComponent);
                if (parentFieldDialog != null)
                    parentFieldDialog.setDirtyComponent(textComponent);
            }
        });
    }
    if (!(component instanceof JCheckBox))
        setValueOfComponent(component, value, readOnly);
    return component;
}
Example 22
Project: geotools-old-master  File: JSimpleStyleDialog.java View source code
/**
     * Set up the dialog to work with a given feature type
     */
private void setType() {
    GeometryDescriptor desc = schema.getGeometryDescriptor();
    Class<? extends Geometry> clazz = (Class<? extends Geometry>) desc.getType().getBinding();
    geomType = Geometries.getForBinding(clazz);
    String labelText = schema.getTypeName();
    switch(geomType) {
        case POLYGON:
        case MULTIPOLYGON:
            labelText = labelText + " (polygon)";
            break;
        case LINESTRING:
        case MULTILINESTRING:
            labelText = labelText + " (line)";
            break;
        case POINT:
        case MULTIPOINT:
            labelText = labelText + " (point)";
            break;
        default:
            throw new UnsupportedOperationException("No style method for " + clazz.getName());
    }
    typeLabel.setText(labelText);
    // enable relevant components
    for (Component c : controls.keySet()) {
        switch(controls.get(c)) {
            case LINE:
                // nothing to do at present
                break;
            case FILL:
                c.setEnabled(geomType != Geometries.LINESTRING && geomType != Geometries.MULTILINESTRING);
                break;
            case POINT:
                c.setEnabled(geomType == Geometries.POINT || geomType == Geometries.MULTIPOINT);
                break;
        }
    }
    // set the fields available for labels
    fieldsForLabels = new String[schema.getAttributeCount() - 1];
    int k = 0;
    for (AttributeDescriptor attr : schema.getAttributeDescriptors()) {
        if (Geometry.class.isAssignableFrom(attr.getType().getBinding())) {
            continue;
        }
        fieldsForLabels[k++] = attr.getLocalName();
    }
    labelCBox.setModel(new DefaultComboBoxModel(fieldsForLabels));
}
Example 23
Project: eclipselink.runtime-master  File: CompositeIconUITest.java View source code
private void initializeModels() {
    this.entryListModel = new DefaultListModel();
    this.orientationModel = new DefaultComboBoxModel(ORIENTATION_CHOICES);
    this.orientationModel.setSelectedItem(ORIENTATION_HORIZONTAL);
    this.alignmentModel = new DefaultComboBoxModel(HORIZONTAL_ALIGNMENT_CHOICES);
    this.alignmentModel.setSelectedItem(ALIGNMENT_CENTER);
    this.orientationModel.addListDataListener(this.buildOrientationListener());
    this.redXModel = this.buildIconSizeModel();
    this.redYModel = this.buildIconSizeModel();
    this.gap1SizeModel = this.buildGapSizeModel();
    this.greenXModel = this.buildIconSizeModel();
    this.greenYModel = this.buildIconSizeModel();
    this.gap2SizeModel = this.buildGapSizeModel();
    this.blueXModel = this.buildIconSizeModel();
    this.blueYModel = this.buildIconSizeModel();
}
Example 24
Project: eadventure-master  File: ImageAssetPanel.java View source code
/** 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")
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    jbZoomNative = new javax.swing.JButton();
    jpView = new javax.swing.JPanel();
    jlDescription = new javax.swing.JLabel();
    jpViewControls = new javax.swing.JPanel();
    jbOpenExt = new javax.swing.JButton();
    jcbOpenWith = new javax.swing.JComboBox();
    jbResetZoom = new javax.swing.JButton();
    jbZoomPixel = new javax.swing.JButton();
    jpCanvasContainer = new javax.swing.JPanel();
    jbZoomNative.setText("1:1");
    setLayout(new java.awt.GridBagLayout());
    jpView.setLayout(new java.awt.GridBagLayout());
    jlDescription.setText("<no image loaded>");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jpView.add(jlDescription, gridBagConstraints);
    jpViewControls.setLayout(new java.awt.GridBagLayout());
    jbOpenExt.setText("Open with");
    jbOpenExt.addActionListener(new java.awt.event.ActionListener() {

        @Override
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbOpenExtActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    jpViewControls.add(jbOpenExt, gridBagConstraints);
    jcbOpenWith.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;
    gridBagConstraints.weightx = 0.5;
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 0, 16);
    jpViewControls.add(jcbOpenWith, gridBagConstraints);
    jbResetZoom.setText("Zoom to fit");
    jbResetZoom.addActionListener(new java.awt.event.ActionListener() {

        @Override
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbResetZoomActionPerformed(evt);
        }
    });
    jpViewControls.add(jbResetZoom, new java.awt.GridBagConstraints());
    jbZoomPixel.setText("Zoom 1:1");
    jbZoomPixel.addActionListener(new java.awt.event.ActionListener() {

        @Override
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbZoomPixelActionPerformed(evt);
        }
    });
    jpViewControls.add(jbZoomPixel, new java.awt.GridBagConstraints());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jpView.add(jpViewControls, gridBagConstraints);
    jpCanvasContainer.setBackground(new java.awt.Color(245, 246, 249));
    jpCanvasContainer.setLayout(new java.awt.BorderLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jpView.add(jpCanvasContainer, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 0.2;
    gridBagConstraints.weighty = 0.2;
    add(jpView, gridBagConstraints);
}
Example 25
Project: nmonvisualizer-master  File: SummaryTablePanel.java View source code
private void updateStatisticsComboBox() {
    String newName = Statistic.GRANULARITY_MAXIMUM.getName(gui.getGranularity());
    @SuppressWarnings("unchecked") DefaultComboBoxModel<String> model = (DefaultComboBoxModel<String>) ((JComboBox<String>) statsPanel.getComponent(1)).getModel();
    boolean reselect = false;
    if (model.getSelectedItem() == model.getElementAt(3)) {
        reselect = true;
    }
    model.removeElementAt(3);
    model.insertElementAt(newName, 3);
    if (reselect) {
        model.setSelectedItem(newName);
    }
}
Example 26
Project: openjdk8-jdk-master  File: FileChooserDemo.java View source code
public void actionPerformed(ActionEvent e) {
    JComponent c = (JComponent) e.getSource();
    boolean selected = false;
    if (c instanceof JToggleButton) {
        selected = ((JToggleButton) c).isSelected();
    }
    if (c == openRadioButton) {
        chooser.setDialogType(OPEN_DIALOG);
        customField.setEnabled(false);
        repaint();
    } else if (c == useEmbedInWizardCheckBox) {
        useControlsCheckBox.setEnabled(!selected);
        useControlsCheckBox.setSelected(!selected);
        chooser.setControlButtonsAreShown(!selected);
    } else if (c == useControlsCheckBox) {
        chooser.setControlButtonsAreShown(selected);
    } else if (c == enableDragCheckBox) {
        chooser.setDragEnabled(selected);
    } else if (c == saveRadioButton) {
        chooser.setDialogType(SAVE_DIALOG);
        customField.setEnabled(false);
        repaint();
    } else if (c == customButton || c == customField) {
        customField.setEnabled(true);
        chooser.setDialogType(CUSTOM_DIALOG);
        repaint();
    } else if (c == showAllFilesFilterCheckBox) {
        chooser.setAcceptAllFileFilterUsed(selected);
    } else if (c == showImageFilesFilterCheckBox) {
        resetFileFilters(selected, showFullDescriptionCheckBox.isSelected());
        showFullDescriptionCheckBox.setEnabled(selected);
    } else if (c == setHiddenCheckBox) {
        chooser.setFileHidingEnabled(!selected);
    } else if (c == accessoryCheckBox) {
        if (selected) {
            chooser.setAccessory(previewer);
        } else {
            chooser.setAccessory(null);
        }
    } else if (c == useFileViewCheckBox) {
        if (selected) {
            chooser.setFileView(fileView);
        } else {
            chooser.setFileView(null);
        }
    } else if (c == useFileSystemViewCheckBox) {
        if (selected) {
            chooser.setFileSystemView(fileSystemView);
        } else {
            // Restore default behaviour
            chooser.setFileSystemView(FileSystemView.getFileSystemView());
        }
    } else if (c == showFullDescriptionCheckBox) {
        resetFileFilters(showImageFilesFilterCheckBox.isSelected(), selected);
    } else if (c == justFilesRadioButton) {
        chooser.setFileSelectionMode(FILES_ONLY);
    } else if (c == justDirectoriesRadioButton) {
        chooser.setFileSelectionMode(DIRECTORIES_ONLY);
    } else if (c == bothFilesAndDirectoriesRadioButton) {
        chooser.setFileSelectionMode(FILES_AND_DIRECTORIES);
    } else if (c == singleSelectionRadioButton) {
        if (selected) {
            chooser.setMultiSelectionEnabled(false);
        }
    } else if (c == multiSelectionRadioButton) {
        if (selected) {
            chooser.setMultiSelectionEnabled(true);
        }
    } else if (c == lafComboBox) {
        SupportedLaF supportedLaF = ((SupportedLaF) lafComboBox.getSelectedItem());
        LookAndFeel laf = supportedLaF.laf;
        try {
            UIManager.setLookAndFeel(laf);
            SwingUtilities.updateComponentTreeUI(frame);
            if (chooser != null) {
                SwingUtilities.updateComponentTreeUI(chooser);
            }
            frame.pack();
        } catch (UnsupportedLookAndFeelException exc) {
            ((DefaultComboBoxModel) lafComboBox.getModel()).removeElement(supportedLaF);
        }
    }
}
Example 27
Project: wpcleaner-master  File: CheckWikiWindow.java View source code
/**
   * @return Project components
   */
private Component createProjectComponents() {
    JPanel panel = new JPanel(new GridBagLayout());
    Configuration configuration = Configuration.getConfiguration();
    // Initialize constraints
    GridBagConstraints constraints = new GridBagConstraints();
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.gridheight = 1;
    constraints.gridwidth = 1;
    constraints.gridx = 0;
    constraints.gridy = 0;
    constraints.insets = new Insets(1, 1, 1, 1);
    constraints.ipadx = 0;
    constraints.ipady = 0;
    constraints.weightx = 0;
    constraints.weighty = 0;
    // Initialize algorithms list
    allAlgorithms = CheckErrorAlgorithms.getAlgorithms(getWikipedia());
    if (allAlgorithms == null) {
        allAlgorithms = Collections.emptyList();
    }
    selectedAlgorithms = new ArrayList<CheckErrorAlgorithm>();
    for (CheckErrorAlgorithm algorithm : allAlgorithms) {
        if (algorithm.isAvailable() && CWConfigurationError.isPriorityFullyActive(algorithm.getPriority())) {
            selectedAlgorithms.add(algorithm);
        }
    }
    createPopupSelectErrors();
    // Loading
    JToolBar toolbarLoad = new JToolBar(SwingConstants.HORIZONTAL);
    toolbarLoad.setFloatable(false);
    modelMaxErrors = new SpinnerNumberModel(configuration.getInt(null, ConfigurationValueInteger.CHECK_NB_ERRORS), 10, 1000, 5);
    JSpinner spinMaxErrors = new JSpinner(modelMaxErrors);
    spinMaxErrors.setPreferredSize(new Dimension(80, 25));
    spinMaxErrors.setMaximumSize(new Dimension(80, 25));
    JLabel labelMaxErrors = Utilities.createJLabel(GT._("Maximum number of errors for Check Wiki :"));
    labelMaxErrors.setLabelFor(spinMaxErrors);
    labelMaxErrors.setHorizontalAlignment(SwingConstants.TRAILING);
    toolbarLoad.add(labelMaxErrors);
    toolbarLoad.add(spinMaxErrors);
    toolbarLoad.addSeparator();
    buttonSelectErrors = Utilities.createJButton("gnome-preferences-desktop.png", EnumImageSize.NORMAL, GT._("Select errors"), true, null);
    buttonSelectErrors.addActionListener(EventHandler.create(ActionListener.class, this, "actionChooseErrors"));
    toolbarLoad.add(buttonSelectErrors);
    buttonLoadErrors = Utilities.createJButton("gnome-view-refresh.png", EnumImageSize.NORMAL, getLoadMessage(), true, null);
    buttonLoadErrors.setActionCommand(ACTION_RELOAD);
    buttonLoadErrors.addActionListener(this);
    buttonLoadErrors.setPreferredSize(new Dimension(800, 20));
    buttonLoadErrors.setHorizontalAlignment(SwingConstants.LEADING);
    buttonLoadErrors.setComponentPopupMenu(popupSelectErrors);
    buttonLoadErrors.setToolTipText(GT._("Right click to select errors"));
    toolbarLoad.add(buttonLoadErrors);
    constraints.fill = GridBagConstraints.BOTH;
    constraints.gridwidth = 3;
    constraints.gridx = 0;
    constraints.weightx = 1;
    constraints.weighty = 0;
    panel.add(toolbarLoad, constraints);
    constraints.gridy++;
    // List of errors managed by the project
    JLabel labelErrors = Utilities.createJLabel(GT._("List of errors detected :"));
    constraints.fill = GridBagConstraints.HORIZONTAL;
    constraints.gridwidth = 1;
    constraints.gridx = 0;
    constraints.weightx = 0;
    constraints.weighty = 0;
    panel.add(labelErrors, constraints);
    modelAllErrors = new DefaultComboBoxModel<Object>();
    listAllErrors = new JComboBox<Object>(modelAllErrors);
    listAllErrors.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) {
            actionSelectErrorType();
        }
    });
    constraints.gridx++;
    constraints.weightx = 1;
    panel.add(listAllErrors, constraints);
    JToolBar toolbar = new JToolBar(SwingConstants.HORIZONTAL);
    toolbar.setFloatable(false);
    buttonReloadError = Utilities.createJButton("gnome-view-refresh.png", EnumImageSize.NORMAL, GT._("Reload error"), false, null);
    buttonReloadError.addActionListener(EventHandler.create(ActionListener.class, this, "actionReloadError"));
    toolbar.add(buttonReloadError);
    buttonErrorDetail = Utilities.createJButton("tango-help-browser.png", EnumImageSize.NORMAL, GT._("Detail"), false, null);
    buttonErrorDetail.addActionListener(EventHandler.create(ActionListener.class, this, "actionErrorDetail"));
    buttonErrorDetail.setEnabled(false);
    toolbar.add(buttonErrorDetail);
    buttonErrorList = Utilities.createJButton("gnome-web-browser.png", EnumImageSize.NORMAL, GT._("List on {0}", CheckWiki.getServerName(getWikipedia())), false, null);
    buttonErrorList.addActionListener(EventHandler.create(ActionListener.class, this, "actionErrorList"));
    buttonErrorList.setEnabled(false);
    toolbar.add(buttonErrorList);
    buttonWhiteList = Utilities.createJButton("gnome-accessories-text-editor.png", EnumImageSize.NORMAL, GT._("View or edit whitelist"), false, null);
    buttonWhiteList.addActionListener(EventHandler.create(ActionListener.class, this, "actionErrorWhiteList"));
    buttonWhiteList.setEnabled(false);
    toolbar.add(buttonWhiteList);
    constraints.gridx++;
    constraints.weightx = 0;
    panel.add(toolbar, constraints);
    constraints.gridx = 0;
    constraints.gridy++;
    // Error description
    textDescription = HTMLPane.createHTMLPane(null);
    textDescription.setPreferredSize(new Dimension(500, 100));
    textDescription.setMinimumSize(new Dimension(200, 100));
    JScrollPane scrollDescription = new JScrollPane(textDescription);
    scrollDescription.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    // Parameters description
    textParameters = HTMLPane.createHTMLPane(null);
    textParameters.setPreferredSize(new Dimension(500, 100));
    textParameters.setMinimumSize(new Dimension(200, 100));
    JScrollPane scrollParameters = new JScrollPane(textParameters);
    scrollParameters.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    // Split pane
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    splitPane.setLeftComponent(scrollDescription);
    splitPane.setRightComponent(scrollParameters);
    splitPane.setPreferredSize(new Dimension(700, 100));
    splitPane.setMinimumSize(new Dimension(300, 100));
    splitPane.setResizeWeight(1.0);
    constraints.fill = GridBagConstraints.BOTH;
    constraints.gridwidth = 3;
    constraints.gridx = 0;
    constraints.weightx = 1;
    constraints.weighty = 1;
    panel.add(splitPane, constraints);
    constraints.gridy++;
    return panel;
}
Example 28
Project: keyring-java-master  File: Editor.java View source code
// categories -----------------------------------------------------
/**
	 * Setup category filter combobox.
	 *
	 * @param myCategories Categories loaded with Keyring database
	 */
private void setupCategories(Vector<String> myCategories) {
    // categoryList
    Vector<String> displayCategories;
    if (null != myCategories) {
        displayCategories = new Vector<String>(myCategories);
    } else {
        displayCategories = new Vector<String>();
    }
    displayCategories.add(0, "All");
    categoryList.setModel(new DefaultComboBoxModel(displayCategories));
    // currentCategory
    Vector<String> currentCategories;
    if (null != myCategories) {
        currentCategories = new Vector<String>(myCategories);
    } else {
        currentCategories = new Vector<String>();
    }
    currentCategory.setModel(new DefaultComboBoxModel(currentCategories));
}
Example 29
Project: Tank-master  File: AgentDebuggerFrame.java View source code
/**
     * @param currentWorkload
     *            the currentWorkload to set
     */
public void setCurrentWorkload(HDWorkload currentWorkload) {
    setCurrentTestPlan(null);
    this.currentWorkload = currentWorkload;
    if (currentWorkload != null) {
        DefaultComboBoxModel<HDTestPlan> model = new DefaultComboBoxModel<HDTestPlan>(currentWorkload.getPlans().toArray(new HDTestPlan[currentWorkload.getPlans().size()]));
        if (currentWorkload.getPlans().size() > 0) {
            setCurrentTestPlan(currentWorkload.getPlans().get(0));
            model.setSelectedItem(currentTestPlan);
        }
        testPlanChooser.setModel(model);
    } else {
        setCurrentTestPlan(null);
        testPlanChooser.setModel(new DefaultComboBoxModel<HDTestPlan>());
    }
}
Example 30
Project: ESPlorer-master  File: ESPlorer.java View source code
/**
     * 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")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
    ContextMenuTerminal = new javax.swing.JPopupMenu();
    MenuItemTerminalClear = new javax.swing.JMenuItem();
    MenuItemTerminalCopy = new javax.swing.JMenuItem();
    TerminalSeparator1 = new javax.swing.JPopupMenu.Separator();
    MenuItemTerminalFontInc = new javax.swing.JMenuItem();
    MenuItemTerminalFontDec = new javax.swing.JMenuItem();
    TerminalSeparator2 = new javax.swing.JPopupMenu.Separator();
    MenuItemTerminalReset = new javax.swing.JMenuItem();
    MenuItemTerminalFormat = new javax.swing.JMenuItem();
    ContextMenuEditor = new javax.swing.JPopupMenu();
    MenuItemEditorUndo = new javax.swing.JMenuItem();
    MenuItemEditorRedo = new javax.swing.JMenuItem();
    EditorSeparator1 = new javax.swing.JPopupMenu.Separator();
    MenuItemEditorSendSelected = new javax.swing.JMenuItem();
    MenuItemEditorSendLine = new javax.swing.JMenuItem();
    EditorSeparator = new javax.swing.JPopupMenu.Separator();
    MenuItemEditorCut = new javax.swing.JMenuItem();
    MenuItemEditorCopy = new javax.swing.JMenuItem();
    MenuItemEditorPaste = new javax.swing.JMenuItem();
    EditorSeparator2 = new javax.swing.JPopupMenu.Separator();
    MenuItemEditorFontInc = new javax.swing.JMenuItem();
    MenuItemEditorFontDec = new javax.swing.JMenuItem();
    ContextMenuLog = new javax.swing.JPopupMenu();
    MenuItemLogClear = new javax.swing.JMenuItem();
    MenuItemLogClose = new javax.swing.JMenuItem();
    LogSeparator = new javax.swing.JPopupMenu.Separator();
    MenuItemLogFontInc = new javax.swing.JMenuItem();
    MenuItemLogFontDec = new javax.swing.JMenuItem();
    MUXGroup = new javax.swing.ButtonGroup();
    Firmware = new javax.swing.ButtonGroup();
    About = new javax.swing.JDialog();
    AppName = new javax.swing.JLabel();
    Version = new javax.swing.JLabel();
    Donate = new javax.swing.JButton();
    Author = new javax.swing.JLabel();
    HomePage = new javax.swing.JButton();
    Author1 = new javax.swing.JLabel();
    ContextMenuESPFileLUA = new javax.swing.JPopupMenu();
    MenuItemESPFileDo = new javax.swing.JMenuItem();
    TerminalSeparator3 = new javax.swing.JPopupMenu.Separator();
    MenuItemESPFileDelete = new javax.swing.JMenuItem();
    buttonGroupLF = new javax.swing.ButtonGroup();
    ContextMenuFileManager = new javax.swing.JPopupMenu();
    ShowFileManager = new javax.swing.JCheckBoxMenuItem();
    HorizontSplit = new javax.swing.JSplitPane();
    LeftBasePane = new javax.swing.JLayeredPane();
    LeftTab = new javax.swing.JTabbedPane();
    NodeMCU = new javax.swing.JPanel();
    TextTab = new javax.swing.JTabbedPane();
    SriptsTab = new javax.swing.JLayeredPane();
    FilesToolBar = new javax.swing.JToolBar();
    ButtonFileNew = new javax.swing.JButton();
    ButtonFileOpen = new javax.swing.JButton();
    ButtonFileReload = new javax.swing.JButton();
    ButtonFileSave = new javax.swing.JButton();
    ButtonFileSaveAll = new javax.swing.JButton();
    ButtonFileClose = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JToolBar.Separator();
    ButtonUndo = new javax.swing.JButton();
    ButtonRedo = new javax.swing.JButton();
    jSeparator8 = new javax.swing.JToolBar.Separator();
    ButtonCut = new javax.swing.JButton();
    ButtonCopy = new javax.swing.JButton();
    ButtonPaste = new javax.swing.JButton();
    jSeparator6 = new javax.swing.JToolBar.Separator();
    ButtonSendSelected = new javax.swing.JButton();
    ButtonSendLine = new javax.swing.JButton();
    FilesTabbedPane = new javax.swing.JTabbedPane();
    FileLayeredPane = new javax.swing.JLayeredPane();
    TextScroll = new org.fife.ui.rtextarea.RTextScrollPane();
    TextEditor = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea();
    LeftExtraButtons = new javax.swing.JLayeredPane();
    FileDo1 = new javax.swing.JButton();
    FileCompile = new javax.swing.JButton();
    FileSaveCompileDoLC = new javax.swing.JButton();
    FileUploadBin = new javax.swing.JButton();
    FileCompileDoLC = new javax.swing.JButton();
    FileCompileDoLC2 = new javax.swing.JButton();
    FileCompileDoLC3 = new javax.swing.JButton();
    FileCompile1 = new javax.swing.JButton();
    Busy = new javax.swing.JLabel();
    FilePathLabel = new javax.swing.JLabel();
    ProgressBar = new javax.swing.JProgressBar();
    LeftMainButtons = new javax.swing.JLayeredPane();
    FileSaveESP = new javax.swing.JToggleButton();
    FileSendESP = new javax.swing.JToggleButton();
    FileDo = new javax.swing.JButton();
    FilesUpload = new javax.swing.JButton();
    NodeMCUCommands = new javax.swing.JLayeredPane();
    CommandsMicroPython = new javax.swing.JLayeredPane();
    CommandsNodeMCU = new javax.swing.JLayeredPane();
    cmdNodeRestart = new javax.swing.JButton();
    cmdTimerStop = new javax.swing.JButton();
    cmdNodeChipID = new javax.swing.JButton();
    TimerNumber = new javax.swing.JComboBox();
    cmdNodeHeap = new javax.swing.JButton();
    cmdListFiles = new javax.swing.JButton();
    cmdNodeSleep = new javax.swing.JButton();
    MicroPythonCommandsTab = new javax.swing.JTabbedPane();
    MicroPythonCommandsWiFi = new javax.swing.JLayeredPane();
    MicroPythonSSID = new javax.swing.JTextField();
    cmdMicroPythonStaConnect = new javax.swing.JButton();
    MicroPythonPASS = new javax.swing.JTextField();
    MicroPythonRemoteHost = new javax.swing.JTextField();
    MicroPythonRemotePort = new javax.swing.JTextField();
    cmdMicroPythonSendToHost = new javax.swing.JButton();
    MicroPythonRemoteData = new javax.swing.JTextField();
    cmdMicroPythonScan = new javax.swing.JButton();
    MicroPythonCommandsGPIO = new javax.swing.JLayeredPane();
    MicroPythonGPIO0_1 = new javax.swing.JButton();
    MicroPythonGPIO0_0 = new javax.swing.JButton();
    MicroPythonGPIO2_1 = new javax.swing.JButton();
    MicroPythonGPIO2_0 = new javax.swing.JButton();
    MicroPythonGPIO4_1 = new javax.swing.JButton();
    MicroPythonGPIO4_0 = new javax.swing.JButton();
    MicroPythonGPIO5_0 = new javax.swing.JButton();
    MicroPythonGPIO5_1 = new javax.swing.JButton();
    MicroPythonGPIO9_0 = new javax.swing.JButton();
    MicroPythonGPIO9_1 = new javax.swing.JButton();
    MicroPythonGPIO10_0 = new javax.swing.JButton();
    MicroPythonGPIO10_1 = new javax.swing.JButton();
    MicroPythonGPIO12_0 = new javax.swing.JButton();
    MicroPythonGPIO12_1 = new javax.swing.JButton();
    MicroPythonGPIO13_0 = new javax.swing.JButton();
    MicroPythonGPIO13_1 = new javax.swing.JButton();
    MicroPythonGPIO14_1 = new javax.swing.JButton();
    MicroPythonGPIO15_1 = new javax.swing.JButton();
    MicroPythonGPIO16_1 = new javax.swing.JButton();
    MicroPythonGPIO14_0 = new javax.swing.JButton();
    MicroPythonGPIO15_0 = new javax.swing.JButton();
    MicroPythonGPIO16_0 = new javax.swing.JButton();
    MicroPythonGPIO0 = new javax.swing.JButton();
    MicroPythonGPIO2 = new javax.swing.JButton();
    MicroPythonGPIO4 = new javax.swing.JButton();
    MicroPythonGPIO5 = new javax.swing.JButton();
    MicroPythonGPIO9 = new javax.swing.JButton();
    MicroPythonGPIO10 = new javax.swing.JButton();
    MicroPythonGPIO12 = new javax.swing.JButton();
    MicroPythonGPIO13 = new javax.swing.JButton();
    MicroPythonGPIO14 = new javax.swing.JButton();
    MicroPythonGPIO15 = new javax.swing.JButton();
    MicroPythonGPIO16 = new javax.swing.JButton();
    NodeMCUSnippets = new javax.swing.JLayeredPane();
    LeftSnippetsPane = new javax.swing.JLayeredPane();
    SnippetEdit0 = new javax.swing.JButton();
    SnippetEdit1 = new javax.swing.JButton();
    SnippetEdit2 = new javax.swing.JButton();
    SnippetEdit3 = new javax.swing.JButton();
    SnippetEdit4 = new javax.swing.JButton();
    SnippetEdit5 = new javax.swing.JButton();
    SnippetEdit6 = new javax.swing.JButton();
    SnippetEdit7 = new javax.swing.JButton();
    SnippetEdit8 = new javax.swing.JButton();
    SnippetEdit9 = new javax.swing.JButton();
    SnippetEdit10 = new javax.swing.JButton();
    SnippetEdit11 = new javax.swing.JButton();
    SnippetEdit12 = new javax.swing.JButton();
    SnippetEdit13 = new javax.swing.JButton();
    SnippetEdit14 = new javax.swing.JButton();
    SnippetEdit15 = new javax.swing.JButton();
    SnippetTopPane = new javax.swing.JLayeredPane();
    SnippetName = new javax.swing.JTextField();
    SnippetSave = new javax.swing.JButton();
    SnippetRun = new javax.swing.JButton();
    SnippetsBusy = new javax.swing.JLabel();
    SnippetCancelEdit = new javax.swing.JButton();
    Condensed = new javax.swing.JCheckBox();
    SnippetScrollPane = new org.fife.ui.rtextarea.RTextScrollPane();
    SnippetText = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea();
    NodeMCUSettings = new javax.swing.JLayeredPane();
    OptionsFirmware = new javax.swing.JLayeredPane();
    OptionNodeMCU = new javax.swing.JRadioButton();
    OptionMicroPython = new javax.swing.JRadioButton();
    OptionsOther = new javax.swing.JLayeredPane();
    FileAutoSaveDisk = new javax.swing.JCheckBox();
    FileAutoSaveESP = new javax.swing.JCheckBox();
    FileAutoRun = new javax.swing.JCheckBox();
    EditorThemeLabel = new javax.swing.JLabel();
    EditorTheme = new javax.swing.JComboBox();
    UseExternalEditor = new javax.swing.JCheckBox();
    OptionsFileSendMode = new javax.swing.JLayeredPane();
    DelayLabel = new javax.swing.JLabel();
    Delay = new javax.swing.JSlider();
    AnswerDelayLabel = new javax.swing.JLabel();
    AnswerDelay = new javax.swing.JSlider();
    DumbMode = new javax.swing.JCheckBox();
    LineDelayLabel = new javax.swing.JLabel();
    LineDelay = new javax.swing.JSlider();
    TurboMode = new javax.swing.JCheckBox();
    jLayeredPane2 = new javax.swing.JLayeredPane();
    jLabel1 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    TerminalMaxSize = new javax.swing.JTextField();
    LogMaxSize = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLayeredPane3 = new javax.swing.JLayeredPane();
    CustomPortName = new javax.swing.JTextField();
    UseCustomPortName = new javax.swing.JCheckBox();
    jLabel10 = new javax.swing.JLabel();
    AutodetectFirmware = new javax.swing.JCheckBox();
    CommandEcho = new javax.swing.JCheckBox();
    ATvXX = new javax.swing.JLayeredPane();
    BasicATcommandsPane = new javax.swing.JLayeredPane();
    cmdAT = new javax.swing.JButton();
    AT_Restart = new javax.swing.JButton();
    AT_GMR = new javax.swing.JButton();
    GSLP = new javax.swing.JButton();
    ATE0 = new javax.swing.JButton();
    ATE1 = new javax.swing.JButton();
    UPDATE = new javax.swing.JButton();
    TabAT = new javax.swing.JTabbedPane();
    AT_Station = new javax.swing.JPanel();
    TopWiFiStaFiller = new javax.swing.Box.Filler(new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150));
    WiFiStationPane = new javax.swing.JLayeredPane();
    cmdGetCWJAP = new javax.swing.JButton();
    cmdSetCWJAP = new javax.swing.JButton();
    SSID = new javax.swing.JTextField();
    PASS = new javax.swing.JTextField();
    cmdSetCWQAP = new javax.swing.JButton();
    cmdGetCIPSTAMAC = new javax.swing.JButton();
    cmdSetCIPSTAMAC = new javax.swing.JButton();
    MAC = new javax.swing.JFormattedTextField();
    cmdGetCIPSTA = new javax.swing.JButton();
    cmdSetCIPSTA = new javax.swing.JButton();
    StationIP = new javax.swing.JTextField();
    AT_SoftAP = new javax.swing.JLayeredPane();
    WiFisoftAPPane = new javax.swing.JLayeredPane();
    cmdSetCWSAP = new javax.swing.JButton();
    cmdGetCWSAP = new javax.swing.JButton();
    cmdGetCIPAPMAC = new javax.swing.JButton();
    cmdGetCWLIF = new javax.swing.JButton();
    SSIDsoftAP = new javax.swing.JTextField();
    PASSsoftAP = new javax.swing.JTextField();
    cmdGetCIPAP = new javax.swing.JButton();
    cmdSetCIPAPMAC = new javax.swing.JButton();
    MAC1 = new javax.swing.JFormattedTextField();
    encryption = new javax.swing.JComboBox();
    channel = new javax.swing.JComboBox();
    softAPIP = new javax.swing.JTextField();
    cmdSetCIPAP = new javax.swing.JButton();
    TopWiFiAPFiller = new javax.swing.Box.Filler(new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150));
    AT_Client = new javax.swing.JPanel();
    TopWiFiStaFiller1 = new javax.swing.Box.Filler(new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150));
    TCPclientBottomPane = new javax.swing.JLayeredPane();
    common = new javax.swing.JPanel();
    conn_id = new javax.swing.JComboBox();
    single = new javax.swing.JRadioButton();
    multi = new javax.swing.JRadioButton();
    jLabel4 = new javax.swing.JLabel();
    cmdGetCIPSTART = new javax.swing.JButton();
    UDP = new javax.swing.JLayeredPane();
    udp_local_port = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    udp_mode = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    remote_address = new javax.swing.JTextField();
    remote_port = new javax.swing.JTextField();
    protocol = new javax.swing.JComboBox();
    cmdSetCIPSTART = new javax.swing.JButton();
    jScrollData = new javax.swing.JScrollPane();
    data = new javax.swing.JTextArea();
    cmdCIPSEND = new javax.swing.JButton();
    cmdCIPSENDinteractive = new javax.swing.JButton();
    cmdSetCIPCLOSE = new javax.swing.JButton();
    AT_Server = new javax.swing.JPanel();
    TCPServerTopFiller = new javax.swing.Box.Filler(new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150), new java.awt.Dimension(457, 150));
    TCPServerBottomPane = new javax.swing.JLayeredPane();
    cmdGetCIPMODE = new javax.swing.JButton();
    cmdSetCIPMODE0 = new javax.swing.JButton();
    cmdSetCIPMODE1 = new javax.swing.JButton();
    cmdSetCIPSERVER = new javax.swing.JButton();
    ServerMode = new javax.swing.JComboBox();
    jLabel5 = new javax.swing.JLabel();
    ServerPort = new javax.swing.JTextField();
    cmdGetCIPSTO = new javax.swing.JButton();
    cmdSetCIPSTO = new javax.swing.JButton();
    ServerTimeout = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    TCP_common = new javax.swing.JLayeredPane();
    cmdGetCIPSTATUS = new javax.swing.JButton();
    cmdGetCIPMUX = new javax.swing.JButton();
    cmdSetCIPMUX1 = new javax.swing.JButton();
    cmdSetCIPMUX0 = new javax.swing.JButton();
    cmdGetCIFSR = new javax.swing.JButton();
    WiFi_common = new javax.swing.JLayeredPane();
    cmdGetHelpCWMODE = new javax.swing.JButton();
    cmdSetCWMODE1 = new javax.swing.JButton();
    cmdGetCWMODE = new javax.swing.JButton();
    cmdSetCWMODE2 = new javax.swing.JButton();
    cmdSetCWLAP = new javax.swing.JButton();
    cmdSetCWMODE3 = new javax.swing.JButton();
    DHCP = new javax.swing.JComboBox();
    DHCPmode = new javax.swing.JComboBox();
    cmdSetCWDHCP = new javax.swing.JButton();
    RN2483 = new javax.swing.JLayeredPane();
    RN2483jTab = new javax.swing.JTabbedPane();
    MacPane = new javax.swing.JScrollPane();
    LoRaMAC = new javax.swing.JLayeredPane();
    MacCommon = new javax.swing.JLayeredPane();
    cmdMacSetAdrOn = new javax.swing.JButton();
    cmdMacSetDR = new javax.swing.JButton();
    cmdMacSetPwrIdx = new javax.swing.JButton();
    cmdMacGetStatus = new javax.swing.JButton();
    cmdMacSetAdrOff = new javax.swing.JButton();
    cmdMacGetAdr = new javax.swing.JButton();
    MacDR = new javax.swing.JTextField();
    MacPower = new javax.swing.JTextField();
    cmdMacGetDR = new javax.swing.JButton();
    cmdMacGetPwrIdx = new javax.swing.JButton();
    SendUnconfirmed = new javax.swing.JLayeredPane();
    cmdMacTX = new javax.swing.JButton();
    MacTxPort = new javax.swing.JTextField();
    MacTxData = new javax.swing.JTextField();
    TxConfirmed = new javax.swing.JComboBox<>();
    jLabel13 = new javax.swing.JLabel();
    RadioPane = new javax.swing.JLayeredPane();
    MacSF = new javax.swing.JComboBox<>();
    jLabel11 = new javax.swing.JLabel();
    RadioRxBandWidth = new javax.swing.JTextField();
    RadioFreq = new javax.swing.JTextField();
    cmdRadiosetRxBw = new javax.swing.JButton();
    cmdRadioSetFreq = new javax.swing.JButton();
    cmdRadioGetSF = new javax.swing.JButton();
    cmdRadioGetBw = new javax.swing.JButton();
    cmdRadioGetRxBw = new javax.swing.JButton();
    cmdRadioGetFreq = new javax.swing.JButton();
    MacBandWidth = new javax.swing.JComboBox<>();
    jLabel12 = new javax.swing.JLabel();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    cmdSysReset = new javax.swing.JButton();
    cmdSysFactoryReset = new javax.swing.JButton();
    cmdSysGetVer = new javax.swing.JButton();
    cmdSysGetHwEui = new javax.swing.JButton();
    ActivationScrollPane = new javax.swing.JScrollPane();
    ActivationPane = new javax.swing.JLayeredPane();
    ABPPane = new javax.swing.JLayeredPane();
    cmdMacSetDevAddr = new javax.swing.JButton();
    cmdMacSetNwkSKey = new javax.swing.JButton();
    cmdMacSetAppSKey = new javax.swing.JButton();
    cmdMacjoinABP = new javax.swing.JButton();
    cmdMacGetDevAddr = new javax.swing.JButton();
    DevAddr = new javax.swing.JTextField();
    NwkSKey = new javax.swing.JTextField();
    AppSKey = new javax.swing.JTextField();
    cmdMacSave = new javax.swing.JButton();
    OTAAPane = new javax.swing.JLayeredPane();
    cmdMacSetDevEui = new javax.swing.JButton();
    cmdMacSetAppEui = new javax.swing.JButton();
    cmdMacSetAppKey = new javax.swing.JButton();
    cmdMacJoinOTAA = new javax.swing.JButton();
    cmdMacGetDevEui = new javax.swing.JButton();
    cmdMacGetAppEui = new javax.swing.JButton();
    DevEUI = new javax.swing.JTextField();
    AppEUI = new javax.swing.JTextField();
    AppKey = new javax.swing.JTextField();
    RightBasePane = new javax.swing.JLayeredPane();
    LEDPanel = new javax.swing.JLayeredPane();
    PortOpenLabel = new javax.swing.JLabel();
    PortCTS = new javax.swing.JLabel();
    PortDTR = new javax.swing.JToggleButton();
    PortRTS = new javax.swing.JToggleButton();
    Open = new javax.swing.JToggleButton();
    Speed = new javax.swing.JComboBox();
    ReScan = new javax.swing.JButton();
    AutoScroll = new javax.swing.JCheckBox();
    Port = new javax.swing.JComboBox();
    EOL = new javax.swing.JCheckBox();
    CR = new javax.swing.JCheckBox();
    LF = new javax.swing.JCheckBox();
    DonateSmall = new javax.swing.JButton();
    TerminalOnlyCheckBox = new javax.swing.JCheckBox();
    EditorOnlyCheckBox = new javax.swing.JCheckBox();
    RightBottomPane = new javax.swing.JLayeredPane();
    Command = new javax.swing.JComboBox();
    RightBigPane = new javax.swing.JLayeredPane();
    RightFilesSplitPane = new javax.swing.JSplitPane();
    TerminalLogPane = new javax.swing.JLayeredPane();
    RightSplitPane = new javax.swing.JSplitPane();
    TerminalPane = new org.fife.ui.rtextarea.RTextScrollPane();
    Terminal = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea();
    ScrollLog = new javax.swing.JScrollPane();
    Log = new javax.swing.JTextArea();
    FileManagerScrollPane = new javax.swing.JScrollPane();
    FileManagersLayer = new javax.swing.JLayeredPane();
    NodeFileManagerPane = new javax.swing.JLayeredPane();
    FileFormat = new javax.swing.JButton();
    FileSystemInfo = new javax.swing.JButton();
    FileListReload = new javax.swing.JButton();
    FileAsButton1 = new javax.swing.JButton();
    FileRenamePanel = new javax.swing.JLayeredPane();
    FileRenameLabel = new javax.swing.JLabel();
    FileRename = new javax.swing.JTextField();
    PyFileManagerPane = new javax.swing.JLayeredPane();
    PyListDir = new javax.swing.JButton();
    PyFileAsButton1 = new javax.swing.JButton();
    RightSnippetsPane = new javax.swing.JLayeredPane();
    ButtonSnippet0 = new javax.swing.JButton();
    ButtonSnippet1 = new javax.swing.JButton();
    ButtonSnippet2 = new javax.swing.JButton();
    ButtonSnippet3 = new javax.swing.JButton();
    ButtonSnippet4 = new javax.swing.JButton();
    ButtonSnippet5 = new javax.swing.JButton();
    ButtonSnippet6 = new javax.swing.JButton();
    ButtonSnippet7 = new javax.swing.JButton();
    ButtonSnippet8 = new javax.swing.JButton();
    ButtonSnippet9 = new javax.swing.JButton();
    ButtonSnippet10 = new javax.swing.JButton();
    ButtonSnippet11 = new javax.swing.JButton();
    ButtonSnippet12 = new javax.swing.JButton();
    ButtonSnippet13 = new javax.swing.JButton();
    ButtonSnippet14 = new javax.swing.JButton();
    ButtonSnippet15 = new javax.swing.JButton();
    RightExtraButtons = new javax.swing.JLayeredPane();
    NodeHeap = new javax.swing.JButton();
    NodeInfo = new javax.swing.JButton();
    NodeChipID = new javax.swing.JButton();
    NodeFlashID = new javax.swing.JButton();
    NodeReset = new javax.swing.JButton();
    SendCommand = new javax.swing.JButton();
    MainMenuBar = new javax.swing.JMenuBar();
    MenuFile = new javax.swing.JMenu();
    MenuItemFileNew = new javax.swing.JMenuItem();
    MenuItemFileOpen = new javax.swing.JMenuItem();
    MenuItemFileReload = new javax.swing.JMenuItem();
    MenuItemFileSave = new javax.swing.JMenuItem();
    MenuItemFileSaveAs = new javax.swing.JMenuItem();
    MenuItemFileSaveAll = new javax.swing.JMenuItem();
    MenuItemFileClose = new javax.swing.JMenuItem();
    jSeparatorFileMenu = new javax.swing.JPopupMenu.Separator();
    MenuItemFileSaveESP = new javax.swing.JMenuItem();
    jMenuItem4 = new javax.swing.JMenuItem();
    MenuItemFileSendESP = new javax.swing.JMenuItem();
    jMenuItem7 = new javax.swing.JMenuItem();
    jSeparator4 = new javax.swing.JPopupMenu.Separator();
    MenuItemFileDo = new javax.swing.JMenuItem();
    jSeparator3 = new javax.swing.JPopupMenu.Separator();
    MenuItemFileRemoveESP = new javax.swing.JMenuItem();
    jSeparator2 = new javax.swing.JPopupMenu.Separator();
    MenuItemFileExit = new javax.swing.JMenuItem();
    MenuEdit = new javax.swing.JMenu();
    MenuItemEditUndo = new javax.swing.JMenuItem();
    MenuItemEditRedo = new javax.swing.JMenuItem();
    jSeparator7 = new javax.swing.JPopupMenu.Separator();
    MenuItemEditCut = new javax.swing.JMenuItem();
    MenuItemEditCopy = new javax.swing.JMenuItem();
    MenuItemEditPaste = new javax.swing.JMenuItem();
    jSeparator5 = new javax.swing.JPopupMenu.Separator();
    MenuItemEditSendSelected = new javax.swing.JMenuItem();
    MenuItemEditSendLine = new javax.swing.JMenuItem();
    MenuESP = new javax.swing.JMenu();
    MenuItemESPReset = new javax.swing.JMenuItem();
    MenuItemESPFormat = new javax.swing.JMenuItem();
    MenuView = new javax.swing.JMenu();
    AlwaysOnTop = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewLog = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewClearLog = new javax.swing.JMenuItem();
    MenuItemViewClearTerminal = new javax.swing.JMenuItem();
    jSeparator9 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewTerminalOnly = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewEditorOnly = new javax.swing.JCheckBoxMenuItem();
    jSeparator18 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewToolbar = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewLeftExtra = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewSnippets = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewFileManager = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewRightExtra = new javax.swing.JCheckBoxMenuItem();
    MenuItemViewDonate = new javax.swing.JCheckBoxMenuItem();
    jSeparator13 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewTermFontInc = new javax.swing.JMenuItem();
    MenuItemViewTermFontDec = new javax.swing.JMenuItem();
    jSeparator10 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewEditorFontInc = new javax.swing.JMenuItem();
    MenuItemViewEditorFontDec = new javax.swing.JMenuItem();
    jSeparator11 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewLogFontInc = new javax.swing.JMenuItem();
    MenuItemViewLogFontDec = new javax.swing.JMenuItem();
    jSeparator12 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewFontDefault = new javax.swing.JMenuItem();
    jSeparator17 = new javax.swing.JPopupMenu.Separator();
    MenuItemViewLF1 = new javax.swing.JRadioButtonMenuItem();
    MenuLinks = new javax.swing.JMenu();
    MenuItemLinksMicroPythonDoc = new javax.swing.JMenuItem();
    MenuItemLinksNodeMCUdoc = new javax.swing.JMenuItem();
    jSeparator15 = new javax.swing.JPopupMenu.Separator();
    MenuItemLinksBuyDevBoard = new javax.swing.JMenuItem();
    MenuItemLinksBuyESP8266 = new javax.swing.JMenuItem();
    MenuItemLinksBuyESD12 = new javax.swing.JMenuItem();
    MenuItemLinksBuyOther = new javax.swing.JMenuItem();
    jSeparator16 = new javax.swing.JPopupMenu.Separator();
    MenuItemLinksIoTmanager = new javax.swing.JMenuItem();
    jSeparator19 = new javax.swing.JPopupMenu.Separator();
    MenuItemLinksESPlorerForumEn = new javax.swing.JMenuItem();
    MenuItemLinksESPlorerForumRu = new javax.swing.JMenuItem();
    MenuItemLinksESPlorerLatest = new javax.swing.JMenuItem();
    MenuItemLinksESPlorerSource = new javax.swing.JMenuItem();
    MenuItemLinksESPlorerHome = new javax.swing.JMenuItem();
    jSeparator20 = new javax.swing.JPopupMenu.Separator();
    MenuItemLinksDonate = new javax.swing.JMenuItem();
    MenuHelp = new javax.swing.JMenu();
    MenuItemHelpAbout = new javax.swing.JMenuItem();
    ContextMenuTerminal.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {

        public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
        }

        public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
        }

        public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            ContextMenuTerminalPopupMenuWillBecomeVisible(evt);
        }
    });
    MenuItemTerminalClear.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemTerminalClear.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/terminal_clear.png")));
    MenuItemTerminalClear.setText("Clear");
    MenuItemTerminalClear.setToolTipText("");
    MenuItemTerminalClear.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemTerminalClearActionPerformed(evt);
        }
    });
    ContextMenuTerminal.add(MenuItemTerminalClear);
    MenuItemTerminalCopy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemTerminalCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/copy.png")));
    MenuItemTerminalCopy.setText("Copy");
    MenuItemTerminalCopy.setToolTipText("Copy selected text to system clipboard");
    MenuItemTerminalCopy.setEnabled(false);
    MenuItemTerminalCopy.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemTerminalCopyActionPerformed(evt);
        }
    });
    ContextMenuTerminal.add(MenuItemTerminalCopy);
    ContextMenuTerminal.add(TerminalSeparator1);
    MenuItemTerminalFontInc.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemTerminalFontInc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom in.png")));
    MenuItemTerminalFontInc.setText("Inc font size");
    MenuItemTerminalFontInc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemTerminalFontIncActionPerformed(evt);
        }
    });
    ContextMenuTerminal.add(MenuItemTerminalFontInc);
    MenuItemTerminalFontDec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemTerminalFontDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom out.png")));
    MenuItemTerminalFontDec.setText("Dec font size");
    MenuItemTerminalFontDec.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemTerminalFontDecActionPerformed(evt);
        }
    });
    ContextMenuTerminal.add(MenuItemTerminalFontDec);
    ContextMenuTerminal.add(TerminalSeparator2);
    // NOI18N
    MenuItemTerminalReset.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/reset.png")));
    MenuItemTerminalReset.setText("Restart ESP module");
    MenuItemTerminalReset.setToolTipText("Send RESET command (firmware depended)");
    MenuItemTerminalReset.setEnabled(false);
    MenuItemTerminalReset.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemTerminalResetActionPerformed(evt);
        }
    });
    ContextMenuTerminal.add(MenuItemTerminalReset);
    // NOI18N
    MenuItemTerminalFormat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file manager (delete).png")));
    MenuItemTerminalFormat.setText("Format ESP");
    MenuItemTerminalFormat.setToolTipText("Remove All files from ESP flash memory");
    MenuItemTerminalFormat.setEnabled(false);
    MenuItemTerminalFormat.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemTerminalFormatActionPerformed(evt);
        }
    });
    ContextMenuTerminal.add(MenuItemTerminalFormat);
    MenuItemEditorUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditorUndo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/undo1.png")));
    MenuItemEditorUndo.setText("Undo");
    MenuItemEditorUndo.setToolTipText("");
    MenuItemEditorUndo.setEnabled(false);
    MenuItemEditorUndo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorUndoActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorUndo);
    MenuItemEditorRedo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, 0));
    // NOI18N
    MenuItemEditorRedo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/redo1.png")));
    MenuItemEditorRedo.setText("Redo");
    MenuItemEditorRedo.setToolTipText("");
    MenuItemEditorRedo.setEnabled(false);
    MenuItemEditorRedo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorRedoActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorRedo);
    ContextMenuEditor.add(EditorSeparator1);
    MenuItemEditorSendSelected.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemEditorSendSelected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/send_selected.png")));
    MenuItemEditorSendSelected.setText("Send selected to ESP");
    MenuItemEditorSendSelected.setToolTipText("Send selected fragment to ESP");
    MenuItemEditorSendSelected.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorSendSelectedActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorSendSelected);
    MenuItemEditorSendLine.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemEditorSendLine.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/run_line.png")));
    MenuItemEditorSendLine.setText("Send current line to ESP");
    MenuItemEditorSendLine.setToolTipText("Send current line to ESP");
    MenuItemEditorSendLine.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorSendLineActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorSendLine);
    ContextMenuEditor.add(EditorSeparator);
    MenuItemEditorCut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditorCut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/cut.png")));
    MenuItemEditorCut.setText("Cut");
    MenuItemEditorCut.setEnabled(false);
    MenuItemEditorCut.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorCutActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorCut);
    MenuItemEditorCopy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditorCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/copy.png")));
    MenuItemEditorCopy.setText("Copy");
    MenuItemEditorCopy.setEnabled(false);
    MenuItemEditorCopy.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorCopyActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorCopy);
    MenuItemEditorPaste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditorPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/paste.png")));
    MenuItemEditorPaste.setText("Paste");
    MenuItemEditorPaste.setEnabled(false);
    MenuItemEditorPaste.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorPasteActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorPaste);
    ContextMenuEditor.add(EditorSeparator2);
    MenuItemEditorFontInc.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemEditorFontInc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom in.png")));
    MenuItemEditorFontInc.setText("Inc font size");
    MenuItemEditorFontInc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorFontIncActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorFontInc);
    MenuItemEditorFontDec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemEditorFontDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom out.png")));
    MenuItemEditorFontDec.setText("Dec font size");
    MenuItemEditorFontDec.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditorFontDecActionPerformed(evt);
        }
    });
    ContextMenuEditor.add(MenuItemEditorFontDec);
    MenuItemLogClear.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemLogClear.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/backup_delete.png")));
    MenuItemLogClear.setText("Clear log");
    MenuItemLogClear.setToolTipText("");
    MenuItemLogClear.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLogClearActionPerformed(evt);
        }
    });
    ContextMenuLog.add(MenuItemLogClear);
    MenuItemLogClose.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
    MenuItemLogClose.setText("Hide Log");
    MenuItemLogClose.setToolTipText("");
    MenuItemLogClose.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLogCloseActionPerformed(evt);
        }
    });
    ContextMenuLog.add(MenuItemLogClose);
    ContextMenuLog.add(LogSeparator);
    MenuItemLogFontInc.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemLogFontInc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom in.png")));
    MenuItemLogFontInc.setText("Inc font size");
    MenuItemLogFontInc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLogFontIncActionPerformed(evt);
        }
    });
    ContextMenuLog.add(MenuItemLogFontInc);
    MenuItemLogFontDec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemLogFontDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom out.png")));
    MenuItemLogFontDec.setText("Dec font size");
    MenuItemLogFontDec.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLogFontDecActionPerformed(evt);
        }
    });
    ContextMenuLog.add(MenuItemLogFontDec);
    About.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    About.setTitle("About");
    About.setIconImage(null);
    About.setMinimumSize(new java.awt.Dimension(406, 250));
    About.setModalityType(java.awt.Dialog.ModalityType.DOCUMENT_MODAL);
    About.setResizable(false);
    About.addWindowFocusListener(new java.awt.event.WindowFocusListener() {

        public void windowGainedFocus(java.awt.event.WindowEvent evt) {
        }

        public void windowLostFocus(java.awt.event.WindowEvent evt) {
            AboutWindowLostFocus(evt);
        }
    });
    About.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusLost(java.awt.event.FocusEvent evt) {
            AboutFocusLost(evt);
        }
    });
    // NOI18N
    AppName.setFont(new java.awt.Font("Tahoma", 1, 24));
    AppName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    AppName.setText("ESPlorer");
    AppName.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    Version.setFont(new java.awt.Font("Tahoma", 1, 12));
    Version.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    Version.setText(version);
    Version.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    Donate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/donate.gif")));
    Donate.setToolTipText("If you'd like to make a one-time donation to ESPlorer author, you can use PayPal to make it fast and easy.");
    Donate.setMaximumSize(new java.awt.Dimension(200, 55));
    Donate.setMinimumSize(new java.awt.Dimension(200, 55));
    Donate.setPreferredSize(new java.awt.Dimension(200, 55));
    Donate.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            DonateActionPerformed(evt);
        }
    });
    Author.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    Author.setText("by Victor Brutskiy (4refr0nt)");
    Author.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    // NOI18N
    HomePage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/wifi.png")));
    HomePage.setText("Visit HomePage");
    HomePage.setToolTipText("");
    HomePage.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
    HomePage.setMaximumSize(new java.awt.Dimension(200, 55));
    HomePage.setMinimumSize(new java.awt.Dimension(200, 55));
    HomePage.setPreferredSize(new java.awt.Dimension(200, 55));
    HomePage.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            HomePageActionPerformed(evt);
        }
    });
    Author1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    Author1.setText("[email protected]");
    Author1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    javax.swing.GroupLayout AboutLayout = new javax.swing.GroupLayout(About.getContentPane());
    About.getContentPane().setLayout(AboutLayout);
    AboutLayout.setHorizontalGroup(AboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(Author, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(AppName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(Version, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(AboutLayout.createSequentialGroup().addComponent(Donate, javax.swing.GroupLayout.DEFAULT_SIZE, 210, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(HomePage, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(Author1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    AboutLayout.setVerticalGroup(AboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(AboutLayout.createSequentialGroup().addContainerGap(44, Short.MAX_VALUE).addComponent(AppName, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(18, 18, 18).addComponent(Version).addGap(18, 18, 18).addComponent(Author).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(Author1).addGap(24, 24, 24).addGroup(AboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(Donate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(HomePage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    ContextMenuESPFileLUA.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {

        public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
        }

        public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
        }

        public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            ContextMenuESPFileLUAPopupMenuWillBecomeVisible(evt);
        }
    });
    // NOI18N
    MenuItemESPFileDo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/play.png")));
    MenuItemESPFileDo.setText("Do file");
    MenuItemESPFileDo.setToolTipText("");
    MenuItemESPFileDo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemESPFileDoActionPerformed(evt);
        }
    });
    ContextMenuESPFileLUA.add(MenuItemESPFileDo);
    ContextMenuESPFileLUA.add(TerminalSeparator3);
    // NOI18N
    MenuItemESPFileDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file_remove.png")));
    MenuItemESPFileDelete.setText("Delete file");
    MenuItemESPFileDelete.setToolTipText("");
    MenuItemESPFileDelete.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemESPFileDeleteActionPerformed(evt);
        }
    });
    ContextMenuESPFileLUA.add(MenuItemESPFileDelete);
    ShowFileManager.setSelected(true);
    ShowFileManager.setText("Show/Hide FileManager panel");
    ShowFileManager.setToolTipText("Look at View for enabling");
    ShowFileManager.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            ShowFileManagerItemStateChanged(evt);
        }
    });
    ContextMenuFileManager.add(ShowFileManager);
    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    setTitle("ESPlorer");
    setAutoRequestFocus(false);
    setBounds(new java.awt.Rectangle(0, 0, 0, 0));
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setFocusCycleRoot(false);
    setLocationByPlatform(true);
    setMinimumSize(new java.awt.Dimension(100, 100));
    // NOI18N
    setName("ESPlorer");
    setPreferredSize(new java.awt.Dimension(1024, 768));
    addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            formFocusGained(evt);
        }
    });
    addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentResized(java.awt.event.ComponentEvent evt) {
            formComponentResized(evt);
        }
    });
    addWindowFocusListener(new java.awt.event.WindowFocusListener() {

        public void windowGainedFocus(java.awt.event.WindowEvent evt) {
            formWindowGainedFocus(evt);
        }

        public void windowLostFocus(java.awt.event.WindowEvent evt) {
        }
    });
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            formPropertyChange(evt);
        }
    });
    addWindowListener(new java.awt.event.WindowAdapter() {

        public void windowClosed(java.awt.event.WindowEvent evt) {
            formWindowClosed(evt);
        }

        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }

        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
        }
    });
    HorizontSplit.setDividerLocation(550);
    HorizontSplit.setMinimumSize(new java.awt.Dimension(100, 100));
    HorizontSplit.setPreferredSize(new java.awt.Dimension(768, 567));
    LeftBasePane.setOpaque(true);
    LeftTab.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
    LeftTab.setToolTipText("");
    LeftTab.setAlignmentX(0.0F);
    LeftTab.setAlignmentY(0.0F);
    LeftTab.setAutoscrolls(true);
    LeftTab.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    LeftTab.setMinimumSize(new java.awt.Dimension(100, 100));
    LeftTab.setOpaque(true);
    LeftTab.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            LeftTabStateChanged(evt);
        }
    });
    NodeMCU.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
    NodeMCU.setMinimumSize(new java.awt.Dimension(100, 100));
    NodeMCU.setPreferredSize(new java.awt.Dimension(461, 537));
    NodeMCU.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            NodeMCUFocusGained(evt);
        }
    });
    NodeMCU.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentShown(java.awt.event.ComponentEvent evt) {
            NodeMCUComponentShown(evt);
        }
    });
    TextTab.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    TextTab.setComponentPopupMenu(ContextMenuEditor);
    TextTab.setMinimumSize(new java.awt.Dimension(462, 365));
    TextTab.setOpaque(true);
    TextTab.setPreferredSize(new java.awt.Dimension(462, 365));
    TextTab.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            TextTabStateChanged(evt);
        }
    });
    SriptsTab.setToolTipText("");
    SriptsTab.setMinimumSize(new java.awt.Dimension(460, 350));
    SriptsTab.setOpaque(true);
    FilesToolBar.setFloatable(false);
    FilesToolBar.setRollover(true);
    FilesToolBar.setAlignmentY(0.5F);
    FilesToolBar.setMaximumSize(new java.awt.Dimension(1000, 40));
    FilesToolBar.setMinimumSize(new java.awt.Dimension(321, 40));
    FilesToolBar.setPreferredSize(new java.awt.Dimension(321, 40));
    ButtonFileNew.setAction(MenuItemFileNew.getAction());
    // NOI18N
    ButtonFileNew.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonFileNew.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/document.png")));
    ButtonFileNew.setToolTipText("New file");
    ButtonFileNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonFileNew.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonFileNew.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonFileNew.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonFileNew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, MenuItemFileNew, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), ButtonFileNew, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    ButtonFileNew.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonFileNewActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonFileNew);
    ButtonFileOpen.setAction(MenuItemFileOpen.getAction());
    // NOI18N
    ButtonFileOpen.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonFileOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/folder open.png")));
    ButtonFileOpen.setText("Open");
    ButtonFileOpen.setToolTipText("Open file from disk");
    ButtonFileOpen.setHideActionText(true);
    ButtonFileOpen.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonFileOpen.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonFileOpen.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonFileOpen.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonFileOpen.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonFileOpen.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonFileOpenActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonFileOpen);
    // NOI18N
    ButtonFileReload.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonFileReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/refresh.png")));
    ButtonFileReload.setText("Reload");
    ButtonFileReload.setToolTipText("Reload file from disk (for use with external editor)");
    ButtonFileReload.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonFileReload.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonFileReload.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonFileReload.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonFileReload.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, MenuItemFileReload, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), ButtonFileReload, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    ButtonFileReload.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonFileReloadActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonFileReload);
    ButtonFileSave.setAction(MenuItemFileSave.getAction());
    // NOI18N
    ButtonFileSave.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonFileSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/save.png")));
    ButtonFileSave.setText("Save");
    ButtonFileSave.setToolTipText("Save file to disk");
    ButtonFileSave.setHideActionText(true);
    ButtonFileSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonFileSave.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonFileSave.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonFileSave.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonFileSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonFileSave.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonFileSaveActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonFileSave);
    ButtonFileSaveAll.setAction(MenuItemFileSave.getAction());
    // NOI18N
    ButtonFileSaveAll.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonFileSaveAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/save_all.png")));
    ButtonFileSaveAll.setText("SaveAll");
    ButtonFileSaveAll.setToolTipText("Save all open files to disk");
    ButtonFileSaveAll.setEnabled(false);
    ButtonFileSaveAll.setFocusable(false);
    ButtonFileSaveAll.setHideActionText(true);
    ButtonFileSaveAll.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonFileSaveAll.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonFileSaveAll.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonFileSaveAll.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonFileSaveAll.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonFileSaveAll.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonFileSaveAllActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonFileSaveAll);
    // NOI18N
    ButtonFileClose.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonFileClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/folder closed.png")));
    ButtonFileClose.setText("Close");
    ButtonFileClose.setToolTipText("Close file");
    ButtonFileClose.setHideActionText(true);
    ButtonFileClose.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonFileClose.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonFileClose.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonFileClose.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonFileClose.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, MenuItemFileClose, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), ButtonFileClose, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    ButtonFileClose.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonFileCloseActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonFileClose);
    FilesToolBar.add(jSeparator1);
    // NOI18N
    ButtonUndo.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonUndo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/undo1.png")));
    ButtonUndo.setText("Undo");
    ButtonUndo.setToolTipText("Undo last action");
    ButtonUndo.setEnabled(false);
    ButtonUndo.setFocusable(false);
    ButtonUndo.setHideActionText(true);
    ButtonUndo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonUndo.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonUndo.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonUndo.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonUndo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonUndo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonUndoActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonUndo);
    // NOI18N
    ButtonRedo.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonRedo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/redo1.png")));
    ButtonRedo.setText("Redo");
    ButtonRedo.setToolTipText("Redo last action");
    ButtonRedo.setEnabled(false);
    ButtonRedo.setFocusable(false);
    ButtonRedo.setHideActionText(true);
    ButtonRedo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonRedo.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonRedo.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonRedo.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonRedo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonRedo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonRedoActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonRedo);
    FilesToolBar.add(jSeparator8);
    ButtonCut.setAction(MenuItemEditCut.getAction());
    // NOI18N
    ButtonCut.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonCut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/cut.png")));
    ButtonCut.setText("Cut");
    ButtonCut.setToolTipText("Cut");
    ButtonCut.setEnabled(false);
    ButtonCut.setHideActionText(true);
    ButtonCut.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonCut.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonCut.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonCut.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonCut.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonCut.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonCutActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonCut);
    ButtonCopy.setAction(MenuItemEditCopy.getAction());
    // NOI18N
    ButtonCopy.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/copy.png")));
    ButtonCopy.setText("Copy");
    ButtonCopy.setToolTipText("Copy");
    ButtonCopy.setEnabled(false);
    ButtonCopy.setHideActionText(true);
    ButtonCopy.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonCopy.setMargin(new java.awt.Insets(2, 2, 2, 2));
    ButtonCopy.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonCopy.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonCopy.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonCopy.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonCopy.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonCopyActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonCopy);
    ButtonPaste.setAction(MenuItemEditPaste.getAction());
    // NOI18N
    ButtonPaste.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/paste.png")));
    ButtonPaste.setText("Paste");
    ButtonPaste.setToolTipText("Paste");
    ButtonPaste.setEnabled(false);
    ButtonPaste.setHideActionText(true);
    ButtonPaste.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonPaste.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonPaste.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonPaste.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonPaste.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonPaste.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonPasteActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonPaste);
    FilesToolBar.add(jSeparator6);
    // NOI18N
    ButtonSendSelected.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonSendSelected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/send_selected.png")));
    ButtonSendSelected.setToolTipText("Send selected block to ESP");
    ButtonSendSelected.setHideActionText(true);
    ButtonSendSelected.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonSendSelected.setLabel("Block");
    ButtonSendSelected.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonSendSelected.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonSendSelected.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonSendSelected.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, MenuItemEditorSendSelected, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), ButtonSendSelected, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    ButtonSendSelected.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSendSelectedActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonSendSelected);
    // NOI18N
    ButtonSendLine.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    ButtonSendLine.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/run_line.png")));
    ButtonSendLine.setText("Line");
    ButtonSendLine.setToolTipText("Send current line to ESP");
    ButtonSendLine.setFocusable(false);
    ButtonSendLine.setHideActionText(true);
    ButtonSendLine.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ButtonSendLine.setMaximumSize(new java.awt.Dimension(40, 40));
    ButtonSendLine.setMinimumSize(new java.awt.Dimension(40, 40));
    ButtonSendLine.setPreferredSize(new java.awt.Dimension(40, 40));
    ButtonSendLine.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    ButtonSendLine.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSendLineActionPerformed(evt);
        }
    });
    FilesToolBar.add(ButtonSendLine);
    FilesTabbedPane.setOpaque(true);
    FilesTabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            FilesTabbedPaneStateChanged(evt);
        }
    });
    FileLayeredPane.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            FileLayeredPaneFocusGained(evt);
        }
    });
    TextScroll.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
    TextScroll.setViewportBorder(javax.swing.BorderFactory.createEtchedBorder());
    TextScroll.setFoldIndicatorEnabled(true);
    TextScroll.setLineNumbersEnabled(true);
    TextScroll.setViewportView(TextEditor);
    TextEditor.setColumns(20);
    TextEditor.setRows(5);
    TextEditor.setTabSize(4);
    TextEditor.setCodeFoldingEnabled(true);
    TextEditor.setDragEnabled(false);
    TextEditor.setFadeCurrentLineHighlight(true);
    TextEditor.setPaintMarkOccurrencesBorder(true);
    TextEditor.setPaintMatchedBracketPair(true);
    TextEditor.setPopupMenu(ContextMenuEditor);
    TextEditor.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_LUA);
    TextEditor.addCaretListener(new javax.swing.event.CaretListener() {

        public void caretUpdate(javax.swing.event.CaretEvent evt) {
            TextEditorCaretUpdate(evt);
        }
    });
    TextEditor.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            TextEditorFocusGained(evt);
        }
    });
    TextEditor.addActiveLineRangeListener(new org.fife.ui.rsyntaxtextarea.ActiveLineRangeListener() {

        public void activeLineRangeChanged(org.fife.ui.rsyntaxtextarea.ActiveLineRangeEvent evt) {
            TextEditorActiveLineRangeChanged(evt);
        }
    });
    TextEditor.addInputMethodListener(new java.awt.event.InputMethodListener() {

        public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
            TextEditorCaretPositionChanged(evt);
        }

        public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
            TextEditorInputMethodTextChanged(evt);
        }
    });
    TextEditor.addKeyListener(new java.awt.event.KeyAdapter() {

        public void keyTyped(java.awt.event.KeyEvent evt) {
            TextEditorKeyTyped(evt);
        }
    });
    TextScroll.setViewportView(TextEditor);
    FileLayeredPane.setLayer(TextScroll, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout FileLayeredPaneLayout = new javax.swing.GroupLayout(FileLayeredPane);
    FileLayeredPane.setLayout(FileLayeredPaneLayout);
    FileLayeredPaneLayout.setHorizontalGroup(FileLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TextScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE));
    FileLayeredPaneLayout.setVerticalGroup(FileLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TextScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 432, Short.MAX_VALUE));
    FilesTabbedPane.addTab("NewFile", FileLayeredPane);
    LeftExtraButtons.setEnabled(false);
    LeftExtraButtons.setOpaque(true);
    LeftExtraButtons.setPreferredSize(new java.awt.Dimension(431, 66));
    LeftExtraButtons.setLayout(new java.awt.FlowLayout());
    // NOI18N
    FileDo1.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileDo1.setText("Save&Run");
    FileDo1.setToolTipText("Do lua script");
    FileDo1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    FileDo1.setIconTextGap(8);
    FileDo1.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileDo1.setMaximumSize(new java.awt.Dimension(127, 30));
    FileDo1.setMinimumSize(new java.awt.Dimension(127, 30));
    FileDo1.setPreferredSize(new java.awt.Dimension(127, 30));
    FileDo1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileDo1ActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileDo1);
    // NOI18N
    FileCompile.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileCompile.setText("Save&Compile");
    FileCompile.setToolTipText("Recompile lua script and do lua bytecode lc file");
    FileCompile.setIconTextGap(2);
    FileCompile.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileCompile.setMaximumSize(new java.awt.Dimension(127, 30));
    FileCompile.setMinimumSize(new java.awt.Dimension(127, 30));
    FileCompile.setPreferredSize(new java.awt.Dimension(127, 30));
    FileCompile.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileCompileActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileCompile);
    // NOI18N
    FileSaveCompileDoLC.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileSaveCompileDoLC.setText("Save&Compile&RunLC");
    FileSaveCompileDoLC.setIconTextGap(0);
    FileSaveCompileDoLC.setMargin(new java.awt.Insets(2, 0, 2, 0));
    FileSaveCompileDoLC.setMaximumSize(new java.awt.Dimension(127, 30));
    FileSaveCompileDoLC.setMinimumSize(new java.awt.Dimension(127, 30));
    FileSaveCompileDoLC.setPreferredSize(new java.awt.Dimension(127, 30));
    FileSaveCompileDoLC.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileSaveCompileDoLCActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileSaveCompileDoLC);
    // NOI18N
    FileUploadBin.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileUploadBin.setText("Save As init");
    FileUploadBin.setToolTipText("Save to ESP as init.lua");
    FileUploadBin.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    FileUploadBin.setIconTextGap(0);
    FileUploadBin.setMargin(new java.awt.Insets(2, 0, 2, 0));
    FileUploadBin.setMaximumSize(new java.awt.Dimension(127, 30));
    FileUploadBin.setMinimumSize(new java.awt.Dimension(127, 30));
    FileUploadBin.setPreferredSize(new java.awt.Dimension(127, 30));
    FileUploadBin.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileUploadBinActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileUploadBin);
    // NOI18N
    FileCompileDoLC.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileCompileDoLC.setText("Save&Compile All");
    FileCompileDoLC.setActionCommand("Save&CompileAll");
    FileCompileDoLC.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    FileCompileDoLC.setIconTextGap(0);
    FileCompileDoLC.setMargin(new java.awt.Insets(2, 0, 2, 0));
    FileCompileDoLC.setMaximumSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC.setMinimumSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC.setPreferredSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileCompileDoLCActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileCompileDoLC);
    // NOI18N
    FileCompileDoLC2.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileCompileDoLC2.setText("View on ESP");
    FileCompileDoLC2.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileCompileDoLC2.setMaximumSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC2.setMinimumSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC2.setPreferredSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC2.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileCompileDoLC2ActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileCompileDoLC2);
    // NOI18N
    FileCompileDoLC3.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileCompileDoLC3.setText("View on ESP");
    FileCompileDoLC3.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileCompileDoLC3.setMaximumSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC3.setMinimumSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC3.setPreferredSize(new java.awt.Dimension(127, 30));
    FileCompileDoLC3.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileCompileDoLC3ActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileCompileDoLC3);
    // NOI18N
    FileCompile1.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileCompile1.setText("Save&Compile");
    FileCompile1.setToolTipText("Recompile lua script and do lua bytecode lc file");
    FileCompile1.setIconTextGap(2);
    FileCompile1.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileCompile1.setMaximumSize(new java.awt.Dimension(127, 30));
    FileCompile1.setMinimumSize(new java.awt.Dimension(127, 30));
    FileCompile1.setPreferredSize(new java.awt.Dimension(127, 30));
    FileCompile1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileCompile1ActionPerformed(evt);
        }
    });
    LeftExtraButtons.add(FileCompile1);
    Busy.setBackground(new java.awt.Color(0, 153, 0));
    Busy.setForeground(new java.awt.Color(255, 255, 255));
    Busy.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    // NOI18N
    Busy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/led_grey.png")));
    Busy.setText("IDLE");
    Busy.setOpaque(true);
    FilePathLabel.setText("jLabel1");
    ProgressBar.setToolTipText("");
    ProgressBar.setOpaque(true);
    ProgressBar.setStringPainted(true);
    LeftMainButtons.setOpaque(true);
    LeftMainButtons.setLayout(new java.awt.FlowLayout());
    // NOI18N
    FileSaveESP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/move.png")));
    FileSaveESP.setText("<html><u>S</u>ave to ESP");
    FileSaveESP.setToolTipText("Send file to ESP and save into flash memory");
    FileSaveESP.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileSaveESP.setIconTextGap(8);
    FileSaveESP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileSaveESP.setMaximumSize(new java.awt.Dimension(127, 30));
    FileSaveESP.setMinimumSize(new java.awt.Dimension(127, 30));
    FileSaveESP.setPreferredSize(new java.awt.Dimension(127, 30));
    FileSaveESP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileSaveESPActionPerformed(evt);
        }
    });
    LeftMainButtons.add(FileSaveESP);
    // NOI18N
    FileSendESP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/script_send.png")));
    FileSendESP.setText("<html>S<u>e</u>nd to ESP");
    FileSendESP.setToolTipText("Send file to ESP and run  \"line by line\"");
    FileSendESP.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileSendESP.setIconTextGap(8);
    FileSendESP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileSendESP.setMaximumSize(new java.awt.Dimension(127, 30));
    FileSendESP.setMinimumSize(new java.awt.Dimension(127, 30));
    FileSendESP.setPreferredSize(new java.awt.Dimension(127, 30));
    FileSendESP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileSendESPActionPerformed(evt);
        }
    });
    LeftMainButtons.add(FileSendESP);
    // NOI18N
    FileDo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/play.png")));
    FileDo.setText("Run");
    FileDo.setToolTipText("Execute lua script via \"dofile\" command");
    FileDo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileDo.setIconTextGap(8);
    FileDo.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileDo.setMaximumSize(new java.awt.Dimension(127, 30));
    FileDo.setMinimumSize(new java.awt.Dimension(127, 30));
    FileDo.setPreferredSize(new java.awt.Dimension(127, 30));
    FileDo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileDoActionPerformed(evt);
        }
    });
    LeftMainButtons.add(FileDo);
    // NOI18N
    FilesUpload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/uploadLUA.png")));
    FilesUpload.setText("Upload ...");
    FilesUpload.setToolTipText("Upload file from disk to ESP flash memory");
    FilesUpload.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FilesUpload.setIconTextGap(8);
    FilesUpload.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FilesUpload.setMaximumSize(new java.awt.Dimension(127, 30));
    FilesUpload.setMinimumSize(new java.awt.Dimension(127, 30));
    FilesUpload.setPreferredSize(new java.awt.Dimension(127, 30));
    FilesUpload.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FilesUploadActionPerformed(evt);
        }
    });
    LeftMainButtons.add(FilesUpload);
    SriptsTab.setLayer(FilesToolBar, javax.swing.JLayeredPane.PALETTE_LAYER);
    SriptsTab.setLayer(FilesTabbedPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SriptsTab.setLayer(LeftExtraButtons, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SriptsTab.setLayer(Busy, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SriptsTab.setLayer(FilePathLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SriptsTab.setLayer(ProgressBar, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SriptsTab.setLayer(LeftMainButtons, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout SriptsTabLayout = new javax.swing.GroupLayout(SriptsTab);
    SriptsTab.setLayout(SriptsTabLayout);
    SriptsTabLayout.setHorizontalGroup(SriptsTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(FilesTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addComponent(FilesToolBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(SriptsTabLayout.createSequentialGroup().addGroup(SriptsTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(ProgressBar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(javax.swing.GroupLayout.Alignment.LEADING, SriptsTabLayout.createSequentialGroup().addGap(6, 6, 6).addComponent(Busy, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(FilePathLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addComponent(LeftExtraButtons, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(LeftMainButtons, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 0, Short.MAX_VALUE)));
    SriptsTabLayout.setVerticalGroup(SriptsTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(SriptsTabLayout.createSequentialGroup().addComponent(FilesToolBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(FilesTabbedPane).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(ProgressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(SriptsTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(Busy).addComponent(FilePathLabel)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(LeftExtraButtons, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(LeftMainButtons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
    TextTab.addTab("Scripts", SriptsTab);
    SriptsTab.getAccessibleContext().setAccessibleName("Files");
    NodeMCUCommands.setOpaque(true);
    CommandsMicroPython.setBorder(javax.swing.BorderFactory.createTitledBorder("MicroPython Commands"));
    javax.swing.GroupLayout CommandsMicroPythonLayout = new javax.swing.GroupLayout(CommandsMicroPython);
    CommandsMicroPython.setLayout(CommandsMicroPythonLayout);
    CommandsMicroPythonLayout.setHorizontalGroup(CommandsMicroPythonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    CommandsMicroPythonLayout.setVerticalGroup(CommandsMicroPythonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 695, Short.MAX_VALUE));
    CommandsNodeMCU.setBorder(javax.swing.BorderFactory.createTitledBorder("NodeMCU Commands"));
    // NOI18N
    cmdNodeRestart.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdNodeRestart.setText("Restart ESP");
    cmdNodeRestart.setToolTipText("");
    cmdNodeRestart.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdNodeRestart.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdNodeRestart.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdNodeRestart.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdNodeRestart.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdNodeRestartActionPerformed(evt);
        }
    });
    // NOI18N
    cmdTimerStop.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdTimerStop.setText("tmr.stop");
    cmdTimerStop.setToolTipText("");
    cmdTimerStop.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdTimerStop.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdTimerStop.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdTimerStop.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdTimerStop.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdTimerStopActionPerformed(evt);
        }
    });
    // NOI18N
    cmdNodeChipID.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdNodeChipID.setText("Chip ID");
    cmdNodeChipID.setToolTipText("");
    cmdNodeChipID.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdNodeChipID.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdNodeChipID.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdNodeChipID.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdNodeChipID.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdNodeChipIDActionPerformed(evt);
        }
    });
    TimerNumber.setMaximumRowCount(7);
    TimerNumber.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "6" }));
    TimerNumber.setToolTipText("Timer number (0-6)");
    // NOI18N
    cmdNodeHeap.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdNodeHeap.setText("Heap");
    cmdNodeHeap.setToolTipText("");
    cmdNodeHeap.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdNodeHeap.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdNodeHeap.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdNodeHeap.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdNodeHeap.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdNodeHeapActionPerformed(evt);
        }
    });
    // NOI18N
    cmdListFiles.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdListFiles.setText("List files");
    cmdListFiles.setToolTipText("");
    cmdListFiles.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdListFiles.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdListFiles.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdListFiles.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdListFiles.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdListFilesActionPerformed(evt);
        }
    });
    // NOI18N
    cmdNodeSleep.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdNodeSleep.setText("Sleep 10000");
    cmdNodeSleep.setToolTipText("");
    cmdNodeSleep.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdNodeSleep.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdNodeSleep.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdNodeSleep.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdNodeSleep.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdNodeSleepActionPerformed(evt);
        }
    });
    CommandsNodeMCU.setLayer(cmdNodeRestart, javax.swing.JLayeredPane.DEFAULT_LAYER);
    CommandsNodeMCU.setLayer(cmdTimerStop, javax.swing.JLayeredPane.DEFAULT_LAYER);
    CommandsNodeMCU.setLayer(cmdNodeChipID, javax.swing.JLayeredPane.DEFAULT_LAYER);
    CommandsNodeMCU.setLayer(TimerNumber, javax.swing.JLayeredPane.DEFAULT_LAYER);
    CommandsNodeMCU.setLayer(cmdNodeHeap, javax.swing.JLayeredPane.DEFAULT_LAYER);
    CommandsNodeMCU.setLayer(cmdListFiles, javax.swing.JLayeredPane.DEFAULT_LAYER);
    CommandsNodeMCU.setLayer(cmdNodeSleep, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout CommandsNodeMCULayout = new javax.swing.GroupLayout(CommandsNodeMCU);
    CommandsNodeMCU.setLayout(CommandsNodeMCULayout);
    CommandsNodeMCULayout.setHorizontalGroup(CommandsNodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(CommandsNodeMCULayout.createSequentialGroup().addGroup(CommandsNodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(CommandsNodeMCULayout.createSequentialGroup().addComponent(cmdNodeRestart, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdNodeChipID, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(CommandsNodeMCULayout.createSequentialGroup().addComponent(cmdTimerStop, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(TimerNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(CommandsNodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(CommandsNodeMCULayout.createSequentialGroup().addComponent(cmdNodeHeap, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdNodeSleep, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(cmdListFiles, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 0, Short.MAX_VALUE)));
    CommandsNodeMCULayout.setVerticalGroup(CommandsNodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(CommandsNodeMCULayout.createSequentialGroup().addContainerGap().addGroup(CommandsNodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdNodeChipID, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdNodeRestart, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdNodeHeap, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdNodeSleep, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(CommandsNodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdListFiles, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdTimerStop, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(TimerNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)).addContainerGap()));
    MicroPythonCommandsWiFi.setOpaque(true);
    // NOI18N
    MicroPythonSSID.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonSSID.setText("SSID");
    MicroPythonSSID.setToolTipText("Enter WiFi SSID");
    MicroPythonSSID.setMaximumSize(new java.awt.Dimension(100, 23));
    MicroPythonSSID.setMinimumSize(new java.awt.Dimension(100, 23));
    MicroPythonSSID.setPreferredSize(new java.awt.Dimension(100, 23));
    MicroPythonSSID.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonSSIDActionPerformed(evt);
        }
    });
    MicroPythonSSID.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            MicroPythonSSIDFocusGained(evt);
        }
    });
    // NOI18N
    cmdMicroPythonStaConnect.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/connect3.png")));
    cmdMicroPythonStaConnect.setText("Connect to AP");
    cmdMicroPythonStaConnect.setToolTipText("Connect to WiFi Access Point");
    cmdMicroPythonStaConnect.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMicroPythonStaConnect.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMicroPythonStaConnect.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMicroPythonStaConnect.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMicroPythonStaConnect.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMicroPythonStaConnectActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonPASS.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonPASS.setText("password");
    MicroPythonPASS.setToolTipText("Enter WiFi password");
    MicroPythonPASS.setMaximumSize(new java.awt.Dimension(104, 23));
    MicroPythonPASS.setMinimumSize(new java.awt.Dimension(104, 23));
    MicroPythonPASS.setPreferredSize(new java.awt.Dimension(104, 23));
    MicroPythonPASS.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonPASSActionPerformed(evt);
        }
    });
    MicroPythonPASS.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            MicroPythonPASSFocusGained(evt);
        }
    });
    MicroPythonRemoteHost.setText("micropython.org");
    MicroPythonRemoteHost.setToolTipText("Remote host name");
    MicroPythonRemotePort.setText("80");
    MicroPythonRemotePort.setToolTipText("Remote port");
    // NOI18N
    cmdMicroPythonSendToHost.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/connect3.png")));
    cmdMicroPythonSendToHost.setText("Connect and send");
    cmdMicroPythonSendToHost.setToolTipText("Start a connection as client");
    cmdMicroPythonSendToHost.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMicroPythonSendToHostActionPerformed(evt);
        }
    });
    MicroPythonRemoteData.setText("GET / HTTP/1.1\\r\\nHost: micropython.org\\r\\n\\r\\n");
    MicroPythonRemoteData.setToolTipText("Data to send");
    // NOI18N
    cmdMicroPythonScan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/search again.png")));
    cmdMicroPythonScan.setText("Scan network");
    cmdMicroPythonScan.setToolTipText("Lists all available WiFi Access Points");
    cmdMicroPythonScan.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMicroPythonScan.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMicroPythonScan.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMicroPythonScan.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMicroPythonScan.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMicroPythonScanActionPerformed(evt);
        }
    });
    MicroPythonCommandsWiFi.setLayer(MicroPythonSSID, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(cmdMicroPythonStaConnect, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(MicroPythonPASS, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(MicroPythonRemoteHost, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(MicroPythonRemotePort, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(cmdMicroPythonSendToHost, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(MicroPythonRemoteData, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsWiFi.setLayer(cmdMicroPythonScan, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout MicroPythonCommandsWiFiLayout = new javax.swing.GroupLayout(MicroPythonCommandsWiFi);
    MicroPythonCommandsWiFi.setLayout(MicroPythonCommandsWiFiLayout);
    MicroPythonCommandsWiFiLayout.setHorizontalGroup(MicroPythonCommandsWiFiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MicroPythonCommandsWiFiLayout.createSequentialGroup().addContainerGap().addGroup(MicroPythonCommandsWiFiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(cmdMicroPythonStaConnect, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MicroPythonCommandsWiFiLayout.createSequentialGroup().addComponent(MicroPythonSSID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonPASS, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsWiFiLayout.createSequentialGroup().addComponent(MicroPythonRemoteHost, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(MicroPythonRemotePort)).addComponent(cmdMicroPythonSendToHost, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(MicroPythonRemoteData, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdMicroPythonScan, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(95, Short.MAX_VALUE)));
    MicroPythonCommandsWiFiLayout.setVerticalGroup(MicroPythonCommandsWiFiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MicroPythonCommandsWiFiLayout.createSequentialGroup().addContainerGap().addGroup(MicroPythonCommandsWiFiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(MicroPythonSSID, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonPASS, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMicroPythonScan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdMicroPythonStaConnect, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsWiFiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(MicroPythonRemoteHost, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonRemotePort, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonRemoteData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdMicroPythonSendToHost).addContainerGap(374, Short.MAX_VALUE)));
    MicroPythonCommandsTab.addTab(" WiFi ", MicroPythonCommandsWiFi);
    MicroPythonCommandsGPIO.setOpaque(true);
    // NOI18N
    MicroPythonGPIO0_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO0_1.setText("GPIO0 -> 1");
    MicroPythonGPIO0_1.setToolTipText("");
    MicroPythonGPIO0_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO0_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO0_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO0_0.setText("GPIO0 -> 0");
    MicroPythonGPIO0_0.setToolTipText("");
    MicroPythonGPIO0_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO0_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO2_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO2_1.setText("GPIO2 -> 1");
    MicroPythonGPIO2_1.setToolTipText("");
    MicroPythonGPIO2_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO2_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO2_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO2_0.setText("GPIO2 -> 0");
    MicroPythonGPIO2_0.setToolTipText("");
    MicroPythonGPIO2_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO2_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO4_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO4_1.setText("GPIO4 -> 1");
    MicroPythonGPIO4_1.setToolTipText("");
    MicroPythonGPIO4_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO4_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO4_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO4_0.setText("GPIO4 -> 0");
    MicroPythonGPIO4_0.setToolTipText("");
    MicroPythonGPIO4_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO4_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO5_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO5_0.setText("GPIO5 -> 0");
    MicroPythonGPIO5_0.setToolTipText("");
    MicroPythonGPIO5_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO5_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO5_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO5_1.setText("GPIO5 -> 1");
    MicroPythonGPIO5_1.setToolTipText("");
    MicroPythonGPIO5_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO5_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO9_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO9_0.setText("GPIO9 -> 0");
    MicroPythonGPIO9_0.setToolTipText("");
    MicroPythonGPIO9_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO9_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO9_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO9_1.setText("GPIO9 -> 1");
    MicroPythonGPIO9_1.setToolTipText("");
    MicroPythonGPIO9_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO9_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO10_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO10_0.setText("GPIO10 -> 0");
    MicroPythonGPIO10_0.setToolTipText("");
    MicroPythonGPIO10_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO10_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO10_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO10_1.setText("GPIO10 -> 1");
    MicroPythonGPIO10_1.setToolTipText("");
    MicroPythonGPIO10_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO10_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO12_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO12_0.setText("GPIO12 -> 0");
    MicroPythonGPIO12_0.setToolTipText("");
    MicroPythonGPIO12_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO12_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO12_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO12_1.setText("GPIO12 -> 1");
    MicroPythonGPIO12_1.setToolTipText("");
    MicroPythonGPIO12_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO12_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO13_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO13_0.setText("GPIO13 -> 0");
    MicroPythonGPIO13_0.setToolTipText("");
    MicroPythonGPIO13_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO13_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO13_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO13_1.setText("GPIO13 -> 1");
    MicroPythonGPIO13_1.setToolTipText("");
    MicroPythonGPIO13_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO13_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO14_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO14_1.setText("GPIO14 -> 1");
    MicroPythonGPIO14_1.setToolTipText("");
    MicroPythonGPIO14_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO14_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO15_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO15_1.setText("GPIO15 -> 1");
    MicroPythonGPIO15_1.setToolTipText("");
    MicroPythonGPIO15_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO15_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO16_1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO16_1.setText("GPIO16 -> 1");
    MicroPythonGPIO16_1.setToolTipText("");
    MicroPythonGPIO16_1.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16_1.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16_1.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16_1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO16_1ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO14_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO14_0.setText("GPIO14 -> 0");
    MicroPythonGPIO14_0.setToolTipText("");
    MicroPythonGPIO14_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO14_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO15_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO15_0.setText("GPIO15 -> 0");
    MicroPythonGPIO15_0.setToolTipText("");
    MicroPythonGPIO15_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO15_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO16_0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO16_0.setText("GPIO16 -> 0");
    MicroPythonGPIO16_0.setToolTipText("");
    MicroPythonGPIO16_0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16_0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16_0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16_0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO16_0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO0.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO0.setText("GPIO0 ?");
    MicroPythonGPIO0.setToolTipText("");
    MicroPythonGPIO0.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO0ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO2.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO2.setText("GPIO2 ?");
    MicroPythonGPIO2.setToolTipText("");
    MicroPythonGPIO2.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO2.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO2ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO4.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO4.setText("GPIO4 ?");
    MicroPythonGPIO4.setToolTipText("");
    MicroPythonGPIO4.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO4.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO4ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO5.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO5.setText("GPIO5 ?");
    MicroPythonGPIO5.setToolTipText("");
    MicroPythonGPIO5.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO5.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO5ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO9.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO9.setText("GPIO9 ?");
    MicroPythonGPIO9.setToolTipText("");
    MicroPythonGPIO9.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO9.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO9ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO10.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO10.setText("GPIO10 ?");
    MicroPythonGPIO10.setToolTipText("");
    MicroPythonGPIO10.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO10.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO10ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO12.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO12.setText("GPIO12 ?");
    MicroPythonGPIO12.setToolTipText("");
    MicroPythonGPIO12.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO12.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO12ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO13.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO13.setText("GPIO13 ?");
    MicroPythonGPIO13.setToolTipText("");
    MicroPythonGPIO13.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO13.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO13ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO14.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO14.setText("GPIO14 ?");
    MicroPythonGPIO14.setToolTipText("");
    MicroPythonGPIO14.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO14.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO14ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO15.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO15.setText("GPIO15 ?");
    MicroPythonGPIO15.setToolTipText("");
    MicroPythonGPIO15.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO15.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO15ActionPerformed(evt);
        }
    });
    // NOI18N
    MicroPythonGPIO16.setFont(new java.awt.Font("Tahoma", 0, 10));
    MicroPythonGPIO16.setText("GPIO16 ?");
    MicroPythonGPIO16.setToolTipText("");
    MicroPythonGPIO16.setMaximumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16.setMinimumSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16.setPreferredSize(new java.awt.Dimension(90, 30));
    MicroPythonGPIO16.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MicroPythonGPIO16ActionPerformed(evt);
        }
    });
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO0_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO0_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO2_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO2_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO4_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO4_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO5_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO5_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO9_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO9_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO10_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO10_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO12_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO12_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO13_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO13_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO14_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO15_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO16_1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO14_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO15_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO16_0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO2, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO4, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO5, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO9, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO10, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO12, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO13, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO14, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO15, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MicroPythonCommandsGPIO.setLayer(MicroPythonGPIO16, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout MicroPythonCommandsGPIOLayout = new javax.swing.GroupLayout(MicroPythonCommandsGPIO);
    MicroPythonCommandsGPIO.setLayout(MicroPythonCommandsGPIOLayout);
    MicroPythonCommandsGPIOLayout.setHorizontalGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO0_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO0_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO2_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO2_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO4_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO4_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO5_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO5_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO9_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO9_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO10_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO10_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO12_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO12_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO13_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO13_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(MicroPythonGPIO14_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO15_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO16_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addGap(96, 96, 96).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO16_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO14_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO15_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))));
    MicroPythonCommandsGPIOLayout.setVerticalGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO0_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO0_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO2_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO2_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO4_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO4_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO5_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO5_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO9_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO9_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO10_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO10_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MicroPythonGPIO12_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO12_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO13_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO14_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO15_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonGPIO16_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(MicroPythonCommandsGPIOLayout.createSequentialGroup().addComponent(MicroPythonGPIO13_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(MicroPythonGPIO14_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(MicroPythonGPIO15_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MicroPythonCommandsGPIOLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(MicroPythonGPIO16_0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MicroPythonGPIO16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addComponent(MicroPythonGPIO13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))));
    MicroPythonCommandsTab.addTab(" GPIO ", MicroPythonCommandsGPIO);
    NodeMCUCommands.setLayer(CommandsMicroPython, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUCommands.setLayer(CommandsNodeMCU, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUCommands.setLayer(MicroPythonCommandsTab, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout NodeMCUCommandsLayout = new javax.swing.GroupLayout(NodeMCUCommands);
    NodeMCUCommands.setLayout(NodeMCUCommandsLayout);
    NodeMCUCommandsLayout.setHorizontalGroup(NodeMCUCommandsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(CommandsNodeMCU).addGroup(NodeMCUCommandsLayout.createSequentialGroup().addComponent(MicroPythonCommandsTab, javax.swing.GroupLayout.PREFERRED_SIZE, 528, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(CommandsMicroPython).addGap(535, 535, 535)));
    NodeMCUCommandsLayout.setVerticalGroup(NodeMCUCommandsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUCommandsLayout.createSequentialGroup().addContainerGap().addComponent(CommandsNodeMCU, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(NodeMCUCommandsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUCommandsLayout.createSequentialGroup().addGap(60, 60, 60).addComponent(CommandsMicroPython, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(NodeMCUCommandsLayout.createSequentialGroup().addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MicroPythonCommandsTab, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE))).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    TextTab.addTab("Commands", NodeMCUCommands);
    NodeMCUSnippets.setOpaque(true);
    LeftSnippetsPane.setOpaque(true);
    // NOI18N
    SnippetEdit0.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit0.setText("Edit Snippet0");
    SnippetEdit0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit0ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit1.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit1.setText("Edit Snippet1");
    SnippetEdit1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit1ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit2.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit2.setText("Edit Snippet2");
    SnippetEdit2.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit2ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit3.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit3.setText("Edit Snippet3");
    SnippetEdit3.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit3ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit4.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit4.setText("Edit Snippet4");
    SnippetEdit4.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit4ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit5.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit5.setText("Edit Snippet5");
    SnippetEdit5.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit5ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit6.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit6.setText("Edit Snippet6");
    SnippetEdit6.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit6ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit7.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit7.setText("Edit Snippet7");
    SnippetEdit7.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit7ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit8.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit8.setText("Edit Snippet8");
    SnippetEdit8.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit8ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit9.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit9.setText("Edit Snippet9");
    SnippetEdit9.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit9ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit10.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit10.setText("Edit Snippet10");
    SnippetEdit10.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit10ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit11.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit11.setText("Edit Snippet11");
    SnippetEdit11.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit11ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit12.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit12.setText("Edit Snippet12");
    SnippetEdit12.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit12ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit13.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit13.setText("Edit Snippet13");
    SnippetEdit13.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit13ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit14.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit14.setText("Edit Snippet14");
    SnippetEdit14.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit14ActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetEdit15.setFont(new java.awt.Font("Tahoma", 0, 10));
    SnippetEdit15.setText("Edit Snippet15");
    SnippetEdit15.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetEdit15ActionPerformed(evt);
        }
    });
    LeftSnippetsPane.setLayer(SnippetEdit0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit2, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit4, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit5, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit6, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit7, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit8, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit9, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit10, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit11, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit12, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit13, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit14, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LeftSnippetsPane.setLayer(SnippetEdit15, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout LeftSnippetsPaneLayout = new javax.swing.GroupLayout(LeftSnippetsPane);
    LeftSnippetsPane.setLayout(LeftSnippetsPaneLayout);
    LeftSnippetsPaneLayout.setHorizontalGroup(LeftSnippetsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(SnippetEdit0, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE).addComponent(SnippetEdit11, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(SnippetEdit15, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    LeftSnippetsPaneLayout.setVerticalGroup(LeftSnippetsPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LeftSnippetsPaneLayout.createSequentialGroup().addComponent(SnippetEdit0, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit3, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit4, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit5, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit6, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit7, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit8, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit9, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit10, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit11, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit12, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit13, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit14, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetEdit15, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(252, Short.MAX_VALUE)));
    SnippetTopPane.setOpaque(true);
    SnippetName.setEnabled(false);
    // NOI18N
    SnippetSave.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    SnippetSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/save.png")));
    SnippetSave.setText("Save");
    SnippetSave.setToolTipText("Save snippet to disk");
    SnippetSave.setEnabled(false);
    SnippetSave.setMargin(new java.awt.Insets(2, 2, 2, 2));
    SnippetSave.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetSaveActionPerformed(evt);
        }
    });
    // NOI18N
    SnippetRun.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    SnippetRun.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/server1_start.png")));
    SnippetRun.setText("Run");
    SnippetRun.setToolTipText("Run snippet");
    SnippetRun.setEnabled(false);
    SnippetRun.setMargin(new java.awt.Insets(2, 2, 2, 2));
    SnippetRun.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetRunActionPerformed(evt);
        }
    });
    SnippetsBusy.setBackground(new java.awt.Color(0, 153, 0));
    SnippetsBusy.setForeground(new java.awt.Color(255, 255, 255));
    SnippetsBusy.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    // NOI18N
    SnippetsBusy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/led_grey.png")));
    SnippetsBusy.setText("IDLE");
    SnippetsBusy.setOpaque(true);
    // NOI18N
    SnippetCancelEdit.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    SnippetCancelEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/abort.png")));
    SnippetCancelEdit.setText("Cancel");
    SnippetCancelEdit.setToolTipText("Cancel edit and clear editor window");
    SnippetCancelEdit.setEnabled(false);
    SnippetCancelEdit.setMargin(new java.awt.Insets(2, 2, 2, 2));
    SnippetCancelEdit.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SnippetCancelEditActionPerformed(evt);
        }
    });
    Condensed.setText("Condensed executing");
    Condensed.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            CondensedItemStateChanged(evt);
        }
    });
    SnippetTopPane.setLayer(SnippetName, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SnippetTopPane.setLayer(SnippetSave, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SnippetTopPane.setLayer(SnippetRun, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SnippetTopPane.setLayer(SnippetsBusy, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SnippetTopPane.setLayer(SnippetCancelEdit, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SnippetTopPane.setLayer(Condensed, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout SnippetTopPaneLayout = new javax.swing.GroupLayout(SnippetTopPane);
    SnippetTopPane.setLayout(SnippetTopPaneLayout);
    SnippetTopPaneLayout.setHorizontalGroup(SnippetTopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(SnippetTopPaneLayout.createSequentialGroup().addGroup(SnippetTopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addGroup(SnippetTopPaneLayout.createSequentialGroup().addComponent(SnippetSave).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetCancelEdit)).addComponent(SnippetName)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(SnippetTopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(SnippetsBusy, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(SnippetTopPaneLayout.createSequentialGroup().addComponent(SnippetRun, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(Condensed))).addContainerGap(69, Short.MAX_VALUE)));
    SnippetTopPaneLayout.setVerticalGroup(SnippetTopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(SnippetTopPaneLayout.createSequentialGroup().addGroup(SnippetTopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(SnippetName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(SnippetsBusy)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(SnippetTopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(SnippetSave).addComponent(SnippetRun).addComponent(SnippetCancelEdit).addComponent(Condensed))));
    SnippetScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    SnippetScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
    SnippetScrollPane.setEnabled(false);
    SnippetScrollPane.setLineNumbersEnabled(true);
    SnippetText.setEditable(false);
    SnippetText.setColumns(20);
    SnippetText.setRows(5);
    SnippetText.setEnabled(false);
    SnippetScrollPane.setViewportView(SnippetText);
    NodeMCUSnippets.setLayer(LeftSnippetsPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUSnippets.setLayer(SnippetTopPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUSnippets.setLayer(SnippetScrollPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout NodeMCUSnippetsLayout = new javax.swing.GroupLayout(NodeMCUSnippets);
    NodeMCUSnippets.setLayout(NodeMCUSnippetsLayout);
    NodeMCUSnippetsLayout.setHorizontalGroup(NodeMCUSnippetsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUSnippetsLayout.createSequentialGroup().addComponent(LeftSnippetsPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(NodeMCUSnippetsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(SnippetTopPane).addComponent(SnippetScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    NodeMCUSnippetsLayout.setVerticalGroup(NodeMCUSnippetsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUSnippetsLayout.createSequentialGroup().addComponent(SnippetTopPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SnippetScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addComponent(LeftSnippetsPane));
    TextTab.addTab("Snippets", NodeMCUSnippets);
    NodeMCUSettings.setAutoscrolls(true);
    NodeMCUSettings.setOpaque(true);
    // NOI18N
    OptionsFirmware.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Select firmware", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 10)));
    // NOI18N
    OptionsFirmware.setFont(new java.awt.Font("Tahoma", 0, 10));
    Firmware.add(OptionNodeMCU);
    // NOI18N
    OptionNodeMCU.setFont(new java.awt.Font("Tahoma", 0, 10));
    OptionNodeMCU.setSelected(true);
    OptionNodeMCU.setText("NodeMCU");
    OptionNodeMCU.setToolTipText("");
    OptionNodeMCU.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            OptionNodeMCUStateChanged(evt);
        }
    });
    OptionNodeMCU.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            OptionNodeMCUItemStateChanged(evt);
        }
    });
    Firmware.add(OptionMicroPython);
    // NOI18N
    OptionMicroPython.setFont(new java.awt.Font("Tahoma", 0, 10));
    OptionMicroPython.setText("MicroPython");
    OptionMicroPython.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            OptionMicroPythonStateChanged(evt);
        }
    });
    OptionMicroPython.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            OptionMicroPythonItemStateChanged(evt);
        }
    });
    OptionsFirmware.setLayer(OptionNodeMCU, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFirmware.setLayer(OptionMicroPython, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout OptionsFirmwareLayout = new javax.swing.GroupLayout(OptionsFirmware);
    OptionsFirmware.setLayout(OptionsFirmwareLayout);
    OptionsFirmwareLayout.setHorizontalGroup(OptionsFirmwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(OptionNodeMCU, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(OptionMicroPython, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    OptionsFirmwareLayout.setVerticalGroup(OptionsFirmwareLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(OptionsFirmwareLayout.createSequentialGroup().addComponent(OptionNodeMCU).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(OptionMicroPython).addContainerGap()));
    // NOI18N
    OptionsOther.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Other", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 10)));
    // NOI18N
    FileAutoSaveDisk.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileAutoSaveDisk.setSelected(true);
    FileAutoSaveDisk.setText("AutoSave file to disk before save to ESP");
    FileAutoSaveDisk.setToolTipText("");
    FileAutoSaveDisk.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileAutoSaveDisk.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    FileAutoSaveDisk.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            FileAutoSaveDiskItemStateChanged(evt);
        }
    });
    // NOI18N
    FileAutoSaveESP.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileAutoSaveESP.setSelected(true);
    FileAutoSaveESP.setText("AutoSave file to ESP after save to disk");
    FileAutoSaveESP.setToolTipText("");
    FileAutoSaveESP.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileAutoSaveESP.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    FileAutoSaveESP.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            FileAutoSaveESPItemStateChanged(evt);
        }
    });
    // NOI18N
    FileAutoRun.setFont(new java.awt.Font("Tahoma", 0, 10));
    FileAutoRun.setText("AutoRun file after save to ESP");
    FileAutoRun.setToolTipText("");
    FileAutoRun.setEnabled(false);
    FileAutoRun.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileAutoRun.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    FileAutoRun.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            FileAutoRunItemStateChanged(evt);
        }
    });
    // NOI18N
    EditorThemeLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    EditorThemeLabel.setText("Editor color theme");
    // NOI18N
    EditorTheme.setFont(new java.awt.Font("Tahoma", 0, 10));
    EditorTheme.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Default", "Dark", "Eclipse", "IDEA", "Visual Studio", "Default-alt" }));
    EditorTheme.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            EditorThemeActionPerformed(evt);
        }
    });
    // NOI18N
    UseExternalEditor.setFont(new java.awt.Font("Tahoma", 0, 10));
    UseExternalEditor.setText("Use external editor");
    UseExternalEditor.setToolTipText("Use external editor. All files will be open in ReadOnly mode");
    UseExternalEditor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    UseExternalEditor.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    UseExternalEditor.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            UseExternalEditorItemStateChanged(evt);
        }
    });
    OptionsOther.setLayer(FileAutoSaveDisk, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsOther.setLayer(FileAutoSaveESP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsOther.setLayer(FileAutoRun, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsOther.setLayer(EditorThemeLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsOther.setLayer(EditorTheme, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsOther.setLayer(UseExternalEditor, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout OptionsOtherLayout = new javax.swing.GroupLayout(OptionsOther);
    OptionsOther.setLayout(OptionsOtherLayout);
    OptionsOtherLayout.setHorizontalGroup(OptionsOtherLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(FileAutoSaveDisk, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(FileAutoSaveESP, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(OptionsOtherLayout.createSequentialGroup().addComponent(EditorThemeLabel).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(EditorTheme, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addContainerGap()).addComponent(UseExternalEditor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(FileAutoRun, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    OptionsOtherLayout.setVerticalGroup(OptionsOtherLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(OptionsOtherLayout.createSequentialGroup().addComponent(FileAutoSaveDisk, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1).addComponent(FileAutoSaveESP, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(UseExternalEditor).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(OptionsOtherLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(EditorThemeLabel).addComponent(EditorTheme, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(FileAutoRun).addContainerGap(39, Short.MAX_VALUE)));
    // NOI18N
    OptionsFileSendMode.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Send", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 10)));
    // NOI18N
    OptionsFileSendMode.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    DelayLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    DelayLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    DelayLabel.setText("Delay after answer = 0 ms");
    DelayLabel.setToolTipText("It's not \"line delay\", as you known. It's delay between answer from ESP and send new data");
    // NOI18N
    Delay.setFont(new java.awt.Font("Tahoma", 0, 10));
    Delay.setMajorTickSpacing(500);
    Delay.setMaximum(1000);
    Delay.setMinorTickSpacing(100);
    Delay.setPaintLabels(true);
    Delay.setPaintTicks(true);
    Delay.setSnapToTicks(true);
    Delay.setToolTipText("Delay between answer from ESP and send new data");
    Delay.setValue(0);
    Delay.setAlignmentY(1.0F);
    Delay.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            DelayStateChanged(evt);
        }
    });
    // NOI18N
    AnswerDelayLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    AnswerDelayLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    AnswerDelayLabel.setText("Answer timeout = 3 s");
    AnswerDelayLabel.setToolTipText("How many time we waiting answer from ESP8266");
    // NOI18N
    AnswerDelay.setFont(new java.awt.Font("Tahoma", 0, 10));
    AnswerDelay.setMajorTickSpacing(5);
    AnswerDelay.setMaximum(10);
    AnswerDelay.setMinorTickSpacing(1);
    AnswerDelay.setPaintLabels(true);
    AnswerDelay.setPaintTicks(true);
    AnswerDelay.setSnapToTicks(true);
    AnswerDelay.setToolTipText("Maximum time for waiting firmware answer");
    AnswerDelay.setValue(3);
    AnswerDelay.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            AnswerDelayStateChanged(evt);
        }
    });
    // NOI18N
    DumbMode.setFont(new java.awt.Font("Tahoma", 0, 10));
    DumbMode.setText("\"Dumb Mode\", never check answers");
    DumbMode.setToolTipText("");
    DumbMode.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            DumbModeItemStateChanged(evt);
        }
    });
    // NOI18N
    LineDelayLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    LineDelayLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    LineDelayLabel.setText("Line delay for \"Dumb Mode\" = 200 ms");
    LineDelayLabel.setToolTipText("It's usual \"line delay\", as you known.");
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, DumbMode, org.jdesktop.beansbinding.ELProperty.create("${selected}"), LineDelayLabel, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    // NOI18N
    LineDelay.setFont(new java.awt.Font("Tahoma", 0, 10));
    LineDelay.setMajorTickSpacing(500);
    LineDelay.setMaximum(1000);
    LineDelay.setMinorTickSpacing(100);
    LineDelay.setPaintLabels(true);
    LineDelay.setPaintTicks(true);
    LineDelay.setSnapToTicks(true);
    LineDelay.setToolTipText("Fixed delay between lines");
    LineDelay.setValue(200);
    LineDelay.setAlignmentY(1.0F);
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, DumbMode, org.jdesktop.beansbinding.ELProperty.create("${selected}"), LineDelay, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    LineDelay.addChangeListener(new javax.swing.event.ChangeListener() {

        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            LineDelayStateChanged(evt);
        }
    });
    // NOI18N
    TurboMode.setFont(new java.awt.Font("Tahoma", 0, 10));
    TurboMode.setText("\"Turbo Mode\"");
    TurboMode.setToolTipText("");
    TurboMode.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            TurboModeItemStateChanged(evt);
        }
    });
    TurboMode.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            TurboModeActionPerformed(evt);
        }
    });
    OptionsFileSendMode.setLayer(DelayLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(Delay, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(AnswerDelayLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(AnswerDelay, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(DumbMode, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(LineDelayLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(LineDelay, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OptionsFileSendMode.setLayer(TurboMode, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout OptionsFileSendModeLayout = new javax.swing.GroupLayout(OptionsFileSendMode);
    OptionsFileSendMode.setLayout(OptionsFileSendModeLayout);
    OptionsFileSendModeLayout.setHorizontalGroup(OptionsFileSendModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(OptionsFileSendModeLayout.createSequentialGroup().addGroup(OptionsFileSendModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(OptionsFileSendModeLayout.createSequentialGroup().addGroup(OptionsFileSendModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(TurboMode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(DelayLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)).addGap(0, 0, Short.MAX_VALUE)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OptionsFileSendModeLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addGroup(OptionsFileSendModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(DumbMode, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(Delay, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(AnswerDelayLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(AnswerDelay, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(LineDelayLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))).addComponent(LineDelay, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap()));
    OptionsFileSendModeLayout.setVerticalGroup(OptionsFileSendModeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(OptionsFileSendModeLayout.createSequentialGroup().addComponent(TurboMode).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(DelayLabel).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(Delay, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(AnswerDelayLabel).addGap(1, 1, 1).addComponent(AnswerDelay, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(DumbMode).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(LineDelayLabel).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(LineDelay, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    // NOI18N
    jLayeredPane2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Data scrollback", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 10)));
    // NOI18N
    jLabel1.setFont(new java.awt.Font("Tahoma", 0, 10));
    jLabel1.setText("Terminal");
    jLabel1.setPreferredSize(new java.awt.Dimension(40, 20));
    // NOI18N
    jLabel7.setFont(new java.awt.Font("Tahoma", 0, 10));
    jLabel7.setText("Log");
    jLabel7.setPreferredSize(new java.awt.Dimension(17, 23));
    TerminalMaxSize.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    TerminalMaxSize.setText("100");
    TerminalMaxSize.setToolTipText("");
    TerminalMaxSize.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusLost(java.awt.event.FocusEvent evt) {
            TerminalMaxSizeFocusLost(evt);
        }
    });
    LogMaxSize.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    LogMaxSize.setText("10");
    LogMaxSize.setToolTipText("");
    LogMaxSize.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusLost(java.awt.event.FocusEvent evt) {
            LogMaxSizeFocusLost(evt);
        }
    });
    LogMaxSize.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            LogMaxSizeActionPerformed(evt);
        }
    });
    jLabel8.setText("kb");
    jLabel9.setText("kb");
    jLayeredPane2.setLayer(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(TerminalMaxSize, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(LogMaxSize, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout jLayeredPane2Layout = new javax.swing.GroupLayout(jLayeredPane2);
    jLayeredPane2.setLayout(jLayeredPane2Layout);
    jLayeredPane2Layout.setHorizontalGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jLayeredPane2Layout.createSequentialGroup().addGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(TerminalMaxSize, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE).addComponent(LogMaxSize)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel8).addComponent(jLabel9)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jLayeredPane2Layout.setVerticalGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jLayeredPane2Layout.createSequentialGroup().addGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(TerminalMaxSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel8)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(LogMaxSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel9))));
    // NOI18N
    jLayeredPane3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "SerialPort", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 10)));
    // NOI18N
    CustomPortName.setFont(new java.awt.Font("Tahoma", 0, 10));
    CustomPortName.setHorizontalAlignment(javax.swing.JTextField.LEFT);
    CustomPortName.setText("/dev/AnySerialDevice");
    CustomPortName.setToolTipText("");
    CustomPortName.setEnabled(false);
    CustomPortName.setMinimumSize(new java.awt.Dimension(50, 19));
    CustomPortName.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusLost(java.awt.event.FocusEvent evt) {
            CustomPortNameFocusLost(evt);
        }
    });
    // NOI18N
    UseCustomPortName.setFont(new java.awt.Font("Tahoma", 0, 10));
    UseCustomPortName.setText("Use custom serial port name");
    UseCustomPortName.setToolTipText("Use custom serial port name (AutoScan will be disabled)");
    UseCustomPortName.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            UseCustomPortNameActionPerformed(evt);
        }
    });
    // NOI18N
    jLabel10.setFont(new java.awt.Font("Tahoma", 0, 10));
    jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel10.setText("(AutoScan will be disabled)");
    jLabel10.setPreferredSize(new java.awt.Dimension(17, 23));
    // NOI18N
    AutodetectFirmware.setFont(new java.awt.Font("Tahoma", 0, 10));
    AutodetectFirmware.setText("Autodetect firmware");
    AutodetectFirmware.setToolTipText("Use custom serial port name (AutoScan will be disabled)");
    AutodetectFirmware.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            AutodetectFirmwareItemStateChanged(evt);
        }
    });
    // NOI18N
    CommandEcho.setFont(new java.awt.Font("Tahoma", 0, 10));
    CommandEcho.setSelected(true);
    CommandEcho.setText("Command Echo");
    CommandEcho.setToolTipText("Use custom serial port name (AutoScan will be disabled)");
    CommandEcho.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            CommandEchoItemStateChanged(evt);
        }
    });
    jLayeredPane3.setLayer(CustomPortName, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane3.setLayer(UseCustomPortName, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane3.setLayer(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane3.setLayer(AutodetectFirmware, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane3.setLayer(CommandEcho, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout jLayeredPane3Layout = new javax.swing.GroupLayout(jLayeredPane3);
    jLayeredPane3.setLayout(jLayeredPane3Layout);
    jLayeredPane3Layout.setHorizontalGroup(jLayeredPane3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(UseCustomPortName, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE).addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(CustomPortName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(AutodetectFirmware, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(CommandEcho, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    jLayeredPane3Layout.setVerticalGroup(jLayeredPane3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jLayeredPane3Layout.createSequentialGroup().addComponent(UseCustomPortName).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(CustomPortName, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(AutodetectFirmware).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(CommandEcho).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    NodeMCUSettings.setLayer(OptionsFirmware, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUSettings.setLayer(OptionsOther, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUSettings.setLayer(OptionsFileSendMode, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUSettings.setLayer(jLayeredPane2, javax.swing.JLayeredPane.DEFAULT_LAYER);
    NodeMCUSettings.setLayer(jLayeredPane3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout NodeMCUSettingsLayout = new javax.swing.GroupLayout(NodeMCUSettings);
    NodeMCUSettings.setLayout(NodeMCUSettingsLayout);
    NodeMCUSettingsLayout.setHorizontalGroup(NodeMCUSettingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUSettingsLayout.createSequentialGroup().addGroup(NodeMCUSettingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(OptionsOther).addComponent(OptionsFirmware).addComponent(OptionsFileSendMode, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(NodeMCUSettingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(jLayeredPane2).addComponent(jLayeredPane3)).addContainerGap(135, Short.MAX_VALUE)));
    NodeMCUSettingsLayout.setVerticalGroup(NodeMCUSettingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUSettingsLayout.createSequentialGroup().addGroup(NodeMCUSettingsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(NodeMCUSettingsLayout.createSequentialGroup().addComponent(OptionsFirmware, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(OptionsOther, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(NodeMCUSettingsLayout.createSequentialGroup().addComponent(jLayeredPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addGap(45, 45, 45).addComponent(OptionsFileSendMode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 134, Short.MAX_VALUE)));
    // NOI18N
    TextTab.addTab("Settings", new javax.swing.ImageIcon(getClass().getResource("/resources/settings2.png")), NodeMCUSettings, "Settings for file sending");
    javax.swing.GroupLayout NodeMCULayout = new javax.swing.GroupLayout(NodeMCU);
    NodeMCU.setLayout(NodeMCULayout);
    NodeMCULayout.setHorizontalGroup(NodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TextTab, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE));
    NodeMCULayout.setVerticalGroup(NodeMCULayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TextTab, javax.swing.GroupLayout.DEFAULT_SIZE, 712, Short.MAX_VALUE));
    TextTab.getAccessibleContext().setAccessibleName("NewFile");
    LeftTab.addTab(" NodeMCU & MicroPython ", NodeMCU);
    ATvXX.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
    BasicATcommandsPane.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED), "Basic AT commands", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    BasicATcommandsPane.setToolTipText("Basic AT commnads");
    BasicATcommandsPane.setMaximumSize(new java.awt.Dimension(445, 50));
    BasicATcommandsPane.setMinimumSize(new java.awt.Dimension(445, 50));
    BasicATcommandsPane.setOpaque(true);
    BasicATcommandsPane.setLayout(new java.awt.FlowLayout());
    cmdAT.setText("AT");
    cmdAT.setToolTipText("Super simple command \"AT\"");
    cmdAT.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdATActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(cmdAT);
    AT_Restart.setText("RST");
    AT_Restart.setToolTipText("Restart");
    AT_Restart.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AT_RestartActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(AT_Restart);
    AT_GMR.setText("GMR");
    AT_GMR.setToolTipText("Get version info");
    AT_GMR.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AT_GMRActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(AT_GMR);
    GSLP.setText("GSLP");
    GSLP.setToolTipText("Enter deep-sleep mode on 5sec");
    GSLP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            GSLPActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(GSLP);
    ATE0.setText("ATE0");
    ATE0.setToolTipText("Echo OFF");
    ATE0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ATE0ActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(ATE0);
    ATE1.setText("ATE1");
    ATE1.setToolTipText("Echo ON");
    ATE1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ATE1ActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(ATE1);
    UPDATE.setText("UPD");
    UPDATE.setToolTipText("Send command \"AT+UPDATE\" for firmware Cloud update ");
    UPDATE.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            UPDATEActionPerformed(evt);
        }
    });
    BasicATcommandsPane.add(UPDATE);
    ATvXX.add(BasicATcommandsPane, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 545, 70));
    TabAT.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
    TabAT.setToolTipText("ESP8266 AT commands v0.20");
    TabAT.setAlignmentX(0.0F);
    TabAT.setAlignmentY(0.0F);
    TabAT.setFocusable(false);
    TabAT.setOpaque(true);
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, AT_Station, org.jdesktop.beansbinding.ELProperty.create("${border}"), TabAT, org.jdesktop.beansbinding.BeanProperty.create("border"));
    bindingGroup.addBinding(binding);
    AT_Station.setToolTipText("WiFi commands");
    AT_Station.setAlignmentX(0.0F);
    AT_Station.setAlignmentY(0.0F);
    AT_Station.setAutoscrolls(true);
    // NOI18N
    AT_Station.setFont(new java.awt.Font("Tahoma", 0, 10));
    AT_Station.setInheritsPopupMenu(true);
    AT_Station.setMinimumSize(new java.awt.Dimension(0, 130));
    // NOI18N
    AT_Station.setName("");
    AT_Station.setOpaque(false);
    AT_Station.setPreferredSize(new java.awt.Dimension(457, 291));
    AT_Station.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            AT_StationFocusGained(evt);
        }
    });
    AT_Station.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentShown(java.awt.event.ComponentEvent evt) {
            AT_StationComponentShown(evt);
        }
    });
    TopWiFiStaFiller.setOpaque(true);
    WiFiStationPane.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "WiFi Station"));
    WiFiStationPane.setAlignmentX(0.0F);
    WiFiStationPane.setAlignmentY(0.0F);
    WiFiStationPane.setMaximumSize(new java.awt.Dimension(463, 291));
    WiFiStationPane.setMinimumSize(new java.awt.Dimension(463, 291));
    // NOI18N
    WiFiStationPane.setName("");
    WiFiStationPane.setOpaque(true);
    cmdGetCWJAP.setFont(cmdGetCWJAP.getFont().deriveFont((float) 12));
    // NOI18N
    cmdGetCWJAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/information.png")));
    cmdGetCWJAP.setText("CWJAP? - Connection info");
    cmdGetCWJAP.setToolTipText("Query AP’s info which is connect by ESP8266");
    cmdGetCWJAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCWJAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCWJAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCWJAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCWJAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCWJAPActionPerformed(evt);
        }
    });
    cmdSetCWJAP.setFont(cmdSetCWJAP.getFont().deriveFont((float) 12));
    // NOI18N
    cmdSetCWJAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/connect3.png")));
    cmdSetCWJAP.setText("CWJAP Connect to AP");
    cmdSetCWJAP.setToolTipText("Connect to WiFi Access Point");
    cmdSetCWJAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWJAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWJAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWJAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCWJAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWJAPActionPerformed(evt);
        }
    });
    // NOI18N
    SSID.setFont(new java.awt.Font("Tahoma", 0, 10));
    SSID.setText("SSID");
    SSID.setToolTipText("Enter WiFi SSID");
    SSID.setMaximumSize(new java.awt.Dimension(100, 23));
    SSID.setMinimumSize(new java.awt.Dimension(100, 23));
    SSID.setPreferredSize(new java.awt.Dimension(100, 23));
    SSID.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SSIDActionPerformed(evt);
        }
    });
    SSID.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            SSIDFocusGained(evt);
        }
    });
    // NOI18N
    PASS.setFont(new java.awt.Font("Tahoma", 0, 10));
    PASS.setText("password");
    PASS.setToolTipText("Enter WiFi password");
    PASS.setMaximumSize(new java.awt.Dimension(104, 23));
    PASS.setMinimumSize(new java.awt.Dimension(104, 23));
    PASS.setPreferredSize(new java.awt.Dimension(104, 23));
    PASS.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PASSActionPerformed(evt);
        }
    });
    PASS.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            PASSFocusGained(evt);
        }
    });
    // NOI18N
    cmdSetCWQAP.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCWQAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/disconnect3.png")));
    cmdSetCWQAP.setText("CWQAP - Disconnect from AP");
    cmdSetCWQAP.setToolTipText("Disconnect from WiFi Access Point");
    cmdSetCWQAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWQAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWQAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWQAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCWQAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWQAPActionPerformed(evt);
        }
    });
    // NOI18N
    cmdGetCIPSTAMAC.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCIPSTAMAC.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/get.png")));
    cmdGetCIPSTAMAC.setText("CIPSTAMAC? Get MAC");
    cmdGetCIPSTAMAC.setToolTipText("Get Station MAC address");
    cmdGetCIPSTAMAC.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCIPSTAMAC.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPSTAMAC.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPSTAMAC.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCIPSTAMAC.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPSTAMACActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPSTAMAC.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCIPSTAMAC.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/set.png")));
    cmdSetCIPSTAMAC.setText("CIPSTAMAC= Set MAC Station");
    cmdSetCIPSTAMAC.setToolTipText("Set Station MAC address");
    cmdSetCIPSTAMAC.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPSTAMAC.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPSTAMAC.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPSTAMAC.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCIPSTAMAC.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPSTAMACActionPerformed(evt);
        }
    });
    try {
        MAC.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("AA:AA:AA:AA:AA:AA")));
    } catch (java.text.ParseException ex) {
        ex.printStackTrace();
    }
    MAC.setText("FF:FF:FF:FF:FF:FF");
    MAC.setToolTipText("Station MAC address");
    // NOI18N
    MAC.setFont(new java.awt.Font("Tahoma", 0, 10));
    MAC.setMaximumSize(new java.awt.Dimension(210, 23));
    MAC.setMinimumSize(new java.awt.Dimension(210, 23));
    MAC.setPreferredSize(new java.awt.Dimension(210, 23));
    // NOI18N
    cmdGetCIPSTA.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCIPSTA.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/get.png")));
    cmdGetCIPSTA.setText("CIPSTA? Get Station IP");
    cmdGetCIPSTA.setToolTipText("Get Station IP address");
    cmdGetCIPSTA.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCIPSTA.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPSTA.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPSTA.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCIPSTA.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPSTAActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPSTA.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCIPSTA.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/set.png")));
    cmdSetCIPSTA.setText("CIPSTA= Set Station IP");
    cmdSetCIPSTA.setToolTipText("Set Station IP address");
    cmdSetCIPSTA.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPSTA.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPSTA.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPSTA.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCIPSTA.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPSTAActionPerformed(evt);
        }
    });
    // NOI18N
    StationIP.setFont(new java.awt.Font("Tahoma", 0, 10));
    StationIP.setText("192.168.1.50");
    StationIP.setMaximumSize(new java.awt.Dimension(210, 23));
    StationIP.setMinimumSize(new java.awt.Dimension(210, 23));
    StationIP.setPreferredSize(new java.awt.Dimension(210, 23));
    WiFiStationPane.setLayer(cmdGetCWJAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(cmdSetCWJAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(SSID, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(PASS, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(cmdSetCWQAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(cmdGetCIPSTAMAC, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(cmdSetCIPSTAMAC, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(MAC, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(cmdGetCIPSTA, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(cmdSetCIPSTA, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFiStationPane.setLayer(StationIP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout WiFiStationPaneLayout = new javax.swing.GroupLayout(WiFiStationPane);
    WiFiStationPane.setLayout(WiFiStationPaneLayout);
    WiFiStationPaneLayout.setHorizontalGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFiStationPaneLayout.createSequentialGroup().addContainerGap().addGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MAC, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCIPSTAMAC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(WiFiStationPaneLayout.createSequentialGroup().addGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(cmdGetCWJAP, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCWQAP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(WiFiStationPaneLayout.createSequentialGroup().addGap(1, 1, 1).addComponent(cmdGetCIPSTAMAC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addGroup(WiFiStationPaneLayout.createSequentialGroup().addComponent(SSID, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(PASS, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)).addComponent(cmdSetCWJAP, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))).addComponent(cmdGetCIPSTA, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(StationIP, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCIPSTA, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    WiFiStationPaneLayout.setVerticalGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFiStationPaneLayout.createSequentialGroup().addContainerGap().addGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdGetCWJAP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(SSID, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(PASS, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(WiFiStationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdSetCWQAP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCWJAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdGetCIPSTAMAC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MAC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPSTAMAC, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdGetCIPSTA, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(StationIP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPSTA, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(201, Short.MAX_VALUE)));
    WiFiStationPaneLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { cmdGetCIPSTA, cmdGetCWJAP, cmdSetCIPSTA, cmdSetCWQAP });
    WiFiStationPaneLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { MAC, StationIP, cmdGetCIPSTAMAC, cmdSetCIPSTAMAC, cmdSetCWJAP });
    javax.swing.GroupLayout AT_StationLayout = new javax.swing.GroupLayout(AT_Station);
    AT_Station.setLayout(AT_StationLayout);
    AT_StationLayout.setHorizontalGroup(AT_StationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TopWiFiStaFiller, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(WiFiStationPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    AT_StationLayout.setVerticalGroup(AT_StationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AT_StationLayout.createSequentialGroup().addComponent(TopWiFiStaFiller, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(WiFiStationPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    TabAT.addTab("WiFi Station", null, AT_Station, "WiFi AT commands");
    AT_Station.getAccessibleContext().setAccessibleName("");
    AT_Station.getAccessibleContext().setAccessibleDescription("WiFi AT commands");
    AT_SoftAP.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            AT_SoftAPFocusGained(evt);
        }
    });
    AT_SoftAP.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentShown(java.awt.event.ComponentEvent evt) {
            AT_SoftAPComponentShown(evt);
        }
    });
    WiFisoftAPPane.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "WiFi softAP"));
    WiFisoftAPPane.setAlignmentX(0.0F);
    WiFisoftAPPane.setAlignmentY(0.0F);
    WiFisoftAPPane.setMaximumSize(new java.awt.Dimension(463, 291));
    WiFisoftAPPane.setMinimumSize(new java.awt.Dimension(463, 291));
    WiFisoftAPPane.setOpaque(true);
    // NOI18N
    cmdSetCWSAP.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCWSAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/server1_start.png")));
    cmdSetCWSAP.setText("CWSAP=  Set softAP config");
    cmdSetCWSAP.setToolTipText("Set configuraton of softAP mode");
    cmdSetCWSAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWSAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWSAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWSAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCWSAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWSAPActionPerformed(evt);
        }
    });
    // NOI18N
    cmdGetCWSAP.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCWSAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/information.png")));
    cmdGetCWSAP.setText("AT+CWSAP? Get softAP config");
    cmdGetCWSAP.setToolTipText("Get configuraton of softAP mode");
    cmdGetCWSAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCWSAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCWSAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCWSAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCWSAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCWSAPActionPerformed(evt);
        }
    });
    // NOI18N
    cmdGetCIPAPMAC.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCIPAPMAC.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/get.png")));
    cmdGetCIPAPMAC.setText("CIPAPMAC Get softAP MAC");
    cmdGetCIPAPMAC.setToolTipText("Get MAC address of ESP8266 softAP");
    cmdGetCIPAPMAC.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCIPAPMAC.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPAPMAC.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPAPMAC.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCIPAPMAC.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPAPMACActionPerformed(evt);
        }
    });
    // NOI18N
    cmdGetCWLIF.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCWLIF.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/get.png")));
    cmdGetCWLIF.setText("CWLIF  Get connected clients IP");
    cmdGetCWLIF.setToolTipText("Get IP adresses softAP clients");
    cmdGetCWLIF.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCWLIF.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCWLIF.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCWLIF.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCWLIF.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCWLIFActionPerformed(evt);
        }
    });
    // NOI18N
    SSIDsoftAP.setFont(new java.awt.Font("Tahoma", 0, 10));
    SSIDsoftAP.setText("SSID");
    SSIDsoftAP.setToolTipText("Enter WiFi SSID");
    SSIDsoftAP.setMaximumSize(new java.awt.Dimension(100, 23));
    SSIDsoftAP.setMinimumSize(new java.awt.Dimension(100, 23));
    SSIDsoftAP.setPreferredSize(new java.awt.Dimension(100, 23));
    SSIDsoftAP.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            SSIDsoftAPFocusGained(evt);
        }
    });
    SSIDsoftAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SSIDsoftAPActionPerformed(evt);
        }
    });
    // NOI18N
    PASSsoftAP.setFont(new java.awt.Font("Tahoma", 0, 10));
    PASSsoftAP.setText("password");
    PASSsoftAP.setToolTipText("Enter WiFi password");
    PASSsoftAP.setMaximumSize(new java.awt.Dimension(104, 23));
    PASSsoftAP.setMinimumSize(new java.awt.Dimension(104, 23));
    PASSsoftAP.setPreferredSize(new java.awt.Dimension(104, 23));
    PASSsoftAP.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            PASSsoftAPFocusGained(evt);
        }
    });
    PASSsoftAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PASSsoftAPActionPerformed(evt);
        }
    });
    // NOI18N
    cmdGetCIPAP.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCIPAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/get.png")));
    cmdGetCIPAP.setText("CIPAP Get softAP IP");
    cmdGetCIPAP.setToolTipText("Get IP address of ESP8266 softAP");
    cmdGetCIPAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCIPAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCIPAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdGetCIPAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPAPActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPAPMAC.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCIPAPMAC.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/set.png")));
    cmdSetCIPAPMAC.setToolTipText("Set softAP MAC address");
    cmdSetCIPAPMAC.setLabel("CIPAPMAC= Set MAC softAP");
    cmdSetCIPAPMAC.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPAPMAC.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPAPMAC.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPAPMAC.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCIPAPMAC.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPAPMACActionPerformed(evt);
        }
    });
    try {
        MAC1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("AA:AA:AA:AA:AA:AA")));
    } catch (java.text.ParseException ex) {
        ex.printStackTrace();
    }
    MAC1.setText("FF:FF:FF:FF:FF:FF");
    MAC1.setToolTipText("Station MAC address");
    // NOI18N
    MAC1.setFont(new java.awt.Font("Tahoma", 0, 10));
    MAC1.setMaximumSize(new java.awt.Dimension(2108, 23));
    MAC1.setMinimumSize(new java.awt.Dimension(2108, 23));
    MAC1.setPreferredSize(new java.awt.Dimension(2108, 23));
    // NOI18N
    encryption.setFont(new java.awt.Font("Tahoma", 0, 12));
    encryption.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0 - Open", "1 - WPA_PSK", "2 - WPA2_PSK", "3 - WPA_WPA2_PSK" }));
    encryption.setSelectedIndex(2);
    encryption.setToolTipText("Set encryption type softAP");
    encryption.setMaximumSize(new java.awt.Dimension(104, 23));
    encryption.setMinimumSize(new java.awt.Dimension(104, 23));
    encryption.setPreferredSize(new java.awt.Dimension(104, 23));
    // NOI18N
    channel.setFont(new java.awt.Font("Tahoma", 0, 12));
    channel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "channel 1", "channel 2", "channel 3", "channel 4", "channel 5", "channel 6", "channel 7", "channel 8", "channel 9", "channel 10", "channel 11", "channel 12", "channel 13" }));
    channel.setToolTipText("Set channell ID softAP");
    channel.setAlignmentX(0.0F);
    channel.setMaximumSize(new java.awt.Dimension(100, 23));
    channel.setMinimumSize(new java.awt.Dimension(100, 23));
    channel.setPreferredSize(new java.awt.Dimension(100, 23));
    // NOI18N
    softAPIP.setFont(new java.awt.Font("Tahoma", 0, 10));
    softAPIP.setText("192.168.4.1");
    softAPIP.setToolTipText("");
    softAPIP.setMaximumSize(new java.awt.Dimension(210, 23));
    softAPIP.setMinimumSize(new java.awt.Dimension(210, 23));
    softAPIP.setPreferredSize(new java.awt.Dimension(210, 23));
    // NOI18N
    cmdSetCIPAP.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCIPAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/set.png")));
    cmdSetCIPAP.setToolTipText("Set softAP IP address");
    cmdSetCIPAP.setLabel("CIPAP= Set softAP IP");
    cmdSetCIPAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCIPAP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCIPAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPAPActionPerformed(evt);
        }
    });
    WiFisoftAPPane.setLayer(cmdSetCWSAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(cmdGetCWSAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(cmdGetCIPAPMAC, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(cmdGetCWLIF, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(SSIDsoftAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(PASSsoftAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(cmdGetCIPAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(cmdSetCIPAPMAC, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(MAC1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(encryption, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(channel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(softAPIP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    WiFisoftAPPane.setLayer(cmdSetCIPAP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout WiFisoftAPPaneLayout = new javax.swing.GroupLayout(WiFisoftAPPane);
    WiFisoftAPPane.setLayout(WiFisoftAPPaneLayout);
    WiFisoftAPPaneLayout.setHorizontalGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addContainerGap().addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MAC1, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCIPAPMAC, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdGetCIPAP, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCIPAP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 0, Short.MAX_VALUE)).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addComponent(cmdGetCIPAPMAC, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdSetCWSAP, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)).addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(cmdGetCWSAP, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdGetCWLIF, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(SSIDsoftAP, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(channel, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(PASSsoftAP, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(encryption, 0, 1, Short.MAX_VALUE))).addComponent(softAPIP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))));
    WiFisoftAPPaneLayout.setVerticalGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addContainerGap().addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(SSIDsoftAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(PASSsoftAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdGetCWSAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addGap(4, 4, 4).addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(channel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(encryption, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))).addGroup(WiFisoftAPPaneLayout.createSequentialGroup().addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdGetCWLIF, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(WiFisoftAPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdGetCIPAPMAC, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCWSAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MAC1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPAPMAC, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdGetCIPAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(softAPIP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPAP, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(246, Short.MAX_VALUE)));
    TopWiFiAPFiller.setOpaque(true);
    AT_SoftAP.setLayer(WiFisoftAPPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    AT_SoftAP.setLayer(TopWiFiAPFiller, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout AT_SoftAPLayout = new javax.swing.GroupLayout(AT_SoftAP);
    AT_SoftAP.setLayout(AT_SoftAPLayout);
    AT_SoftAPLayout.setHorizontalGroup(AT_SoftAPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(WiFisoftAPPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(TopWiFiAPFiller, javax.swing.GroupLayout.DEFAULT_SIZE, 535, Short.MAX_VALUE));
    AT_SoftAPLayout.setVerticalGroup(AT_SoftAPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AT_SoftAPLayout.createSequentialGroup().addComponent(TopWiFiAPFiller, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(WiFisoftAPPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
    TabAT.addTab("WiFi softAP", AT_SoftAP);
    AT_Client.setToolTipText("TCP/IP related commands");
    AT_Client.setAlignmentX(0.0F);
    AT_Client.setAlignmentY(0.0F);
    AT_Client.setOpaque(false);
    AT_Client.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            AT_ClientFocusGained(evt);
        }
    });
    AT_Client.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentShown(java.awt.event.ComponentEvent evt) {
            AT_ClientComponentShown(evt);
        }
    });
    TopWiFiStaFiller1.setOpaque(true);
    common.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Common parameters for commands", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    common.setMaximumSize(new java.awt.Dimension(445, 54));
    common.setMinimumSize(new java.awt.Dimension(445, 54));
    common.setPreferredSize(new java.awt.Dimension(445, 54));
    conn_id.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4" }));
    conn_id.setToolTipText("Connection ID");
    MUXGroup.add(single);
    single.setText("CIPMUX=0 - Single");
    single.setToolTipText("Single connection");
    single.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            singleItemStateChanged(evt);
        }
    });
    MUXGroup.add(multi);
    multi.setSelected(true);
    multi.setText("CIPMUX=1 - Multiple");
    multi.setToolTipText("Multiple connection");
    multi.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            multiItemStateChanged(evt);
        }
    });
    multi.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            multiActionPerformed(evt);
        }
    });
    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel4.setText("Connection ID");
    javax.swing.GroupLayout commonLayout = new javax.swing.GroupLayout(common);
    common.setLayout(commonLayout);
    commonLayout.setHorizontalGroup(commonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(commonLayout.createSequentialGroup().addGap(2, 2, 2).addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(conn_id, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(multi).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(single, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)));
    commonLayout.setVerticalGroup(commonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(commonLayout.createSequentialGroup().addGroup(commonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(conn_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(multi).addComponent(single).addComponent(jLabel4)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    // NOI18N
    cmdGetCIPSTART.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/information.png")));
    cmdGetCIPSTART.setText("CIPSTART=? - Connection info");
    cmdGetCIPSTART.setToolTipText("Get the information of param");
    cmdGetCIPSTART.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPSTARTActionPerformed(evt);
        }
    });
    UDP.setBorder(javax.swing.BorderFactory.createTitledBorder("UDP only"));
    UDP.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            UDPPropertyChange(evt);
        }
    });
    udp_local_port.setToolTipText("Local UDP port");
    udp_local_port.setEnabled(false);
    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel2.setText("Local port");
    udp_mode.setToolTipText("Local UDP port");
    udp_mode.setEnabled(false);
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel3.setText("mode");
    UDP.setLayer(udp_local_port, javax.swing.JLayeredPane.DEFAULT_LAYER);
    UDP.setLayer(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);
    UDP.setLayer(udp_mode, javax.swing.JLayeredPane.DEFAULT_LAYER);
    UDP.setLayer(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout UDPLayout = new javax.swing.GroupLayout(UDP);
    UDP.setLayout(UDPLayout);
    UDPLayout.setHorizontalGroup(UDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(UDPLayout.createSequentialGroup().addGroup(UDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(udp_local_port)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(UDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(udp_mode).addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGap(6, 6, 6)));
    UDPLayout.setVerticalGroup(UDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(UDPLayout.createSequentialGroup().addGroup(UDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2).addComponent(jLabel3)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(UDPLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(udp_local_port, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(udp_mode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addContainerGap()));
    remote_address.setText("192.168.1.1");
    remote_address.setToolTipText("Remote IP address");
    remote_port.setText("80");
    remote_port.setToolTipText("Remote port");
    protocol.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "TCP", "UDP" }));
    protocol.setToolTipText("Connection type: TCP or UDP");
    protocol.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            protocolItemStateChanged(evt);
        }
    });
    // NOI18N
    cmdSetCIPSTART.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/connect3.png")));
    cmdSetCIPSTART.setText("AT+CIPSTART= - Start connection");
    cmdSetCIPSTART.setToolTipText("Start a connection as client");
    cmdSetCIPSTART.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPSTARTActionPerformed(evt);
        }
    });
    data.setColumns(15);
    data.setRows(5);
    data.setTabSize(4);
    data.setText("GET / HTTP/1.0\nHost: 192.168.1.1\nConnection: keep-alive\nAccept: */*\n\n");
    data.setToolTipText("Data to send to remote client");
    data.setCaretPosition(1);
    jScrollData.setViewportView(data);
    // NOI18N
    cmdCIPSEND.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/level up.png")));
    cmdCIPSEND.setText("AT+CIPSEND= - Send data");
    cmdCIPSEND.setToolTipText("Send data to remote client");
    cmdCIPSEND.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdCIPSENDActionPerformed(evt);
        }
    });
    cmdCIPSENDinteractive.setText("AT+CIPSEND - Interactive ");
    cmdCIPSENDinteractive.setToolTipText("Send data to remote client in interactive mode. After all data sent, type \"+++\"");
    cmdCIPSENDinteractive.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdCIPSENDinteractiveActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPCLOSE.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/disconnect3.png")));
    cmdSetCIPCLOSE.setText("AT+CIPCLOSE - Close connection");
    cmdSetCIPCLOSE.setToolTipText("Close current connection in Single mode and close connection <ID> in Multiple mode");
    cmdSetCIPCLOSE.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPCLOSEActionPerformed(evt);
        }
    });
    TCPclientBottomPane.setLayer(common, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(cmdGetCIPSTART, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(UDP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(remote_address, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(remote_port, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(protocol, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(cmdSetCIPSTART, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(jScrollData, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(cmdCIPSEND, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(cmdCIPSENDinteractive, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPclientBottomPane.setLayer(cmdSetCIPCLOSE, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout TCPclientBottomPaneLayout = new javax.swing.GroupLayout(TCPclientBottomPane);
    TCPclientBottomPane.setLayout(TCPclientBottomPaneLayout);
    TCPclientBottomPaneLayout.setHorizontalGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(common, javax.swing.GroupLayout.DEFAULT_SIZE, 535, Short.MAX_VALUE).addGroup(TCPclientBottomPaneLayout.createSequentialGroup().addComponent(UDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPclientBottomPaneLayout.createSequentialGroup().addComponent(remote_address, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(remote_port, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(protocol, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(cmdSetCIPSTART)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGroup(TCPclientBottomPaneLayout.createSequentialGroup().addComponent(jScrollData).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(cmdCIPSEND, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(cmdCIPSENDinteractive, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(cmdSetCIPCLOSE, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)).addComponent(cmdGetCIPSTART, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))));
    TCPclientBottomPaneLayout.setVerticalGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TCPclientBottomPaneLayout.createSequentialGroup().addComponent(common, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPclientBottomPaneLayout.createSequentialGroup().addGap(18, 18, 18).addGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(remote_address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(remote_port, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(protocol, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPSTART)).addGroup(TCPclientBottomPaneLayout.createSequentialGroup().addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(UDP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(TCPclientBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPclientBottomPaneLayout.createSequentialGroup().addComponent(cmdGetCIPSTART).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdCIPSEND).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdCIPSENDinteractive).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPCLOSE).addContainerGap(295, Short.MAX_VALUE)).addComponent(jScrollData))));
    javax.swing.GroupLayout AT_ClientLayout = new javax.swing.GroupLayout(AT_Client);
    AT_Client.setLayout(AT_ClientLayout);
    AT_ClientLayout.setHorizontalGroup(AT_ClientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TCPclientBottomPane).addComponent(TopWiFiStaFiller1, javax.swing.GroupLayout.DEFAULT_SIZE, 535, Short.MAX_VALUE));
    AT_ClientLayout.setVerticalGroup(AT_ClientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(AT_ClientLayout.createSequentialGroup().addComponent(TopWiFiStaFiller1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(TCPclientBottomPane)));
    TabAT.addTab("TCP/IP client", AT_Client);
    AT_Client.getAccessibleContext().setAccessibleName("AT_IP");
    AT_Client.getAccessibleContext().setAccessibleDescription("");
    AT_Server.setOpaque(false);
    AT_Server.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusGained(java.awt.event.FocusEvent evt) {
            AT_ServerFocusGained(evt);
        }
    });
    AT_Server.addComponentListener(new java.awt.event.ComponentAdapter() {

        public void componentShown(java.awt.event.ComponentEvent evt) {
            AT_ServerComponentShown(evt);
        }
    });
    TCPServerTopFiller.setOpaque(true);
    TCPServerBottomPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    TCPServerBottomPane.setMaximumSize(new java.awt.Dimension(463, 377));
    TCPServerBottomPane.setMinimumSize(new java.awt.Dimension(463, 377));
    TCPServerBottomPane.setOpaque(true);
    // NOI18N
    cmdGetCIPMODE.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCIPMODE.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/information.png")));
    cmdGetCIPMODE.setText("CIPMODE? 0 - normal");
    cmdGetCIPMODE.setToolTipText("Get current transfer mode (0- normal, 1 -unvarnished)");
    cmdGetCIPMODE.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCIPMODE.setMaximumSize(new java.awt.Dimension(120, 23));
    cmdGetCIPMODE.setMinimumSize(new java.awt.Dimension(120, 23));
    cmdGetCIPMODE.setPreferredSize(new java.awt.Dimension(120, 23));
    cmdGetCIPMODE.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPMODEActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPMODE0.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSetCIPMODE0.setText("CIPMODE=0");
    cmdSetCIPMODE0.setToolTipText("Set current transfer mode to 0 (normal mode)");
    cmdSetCIPMODE0.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPMODE0.setMaximumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPMODE0.setMinimumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPMODE0.setPreferredSize(new java.awt.Dimension(120, 23));
    cmdSetCIPMODE0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPMODE0ActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPMODE1.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSetCIPMODE1.setText("CIPMODE=1");
    cmdSetCIPMODE1.setToolTipText("Set current transfer mode to 1 (unvarnished mode)");
    cmdSetCIPMODE1.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPMODE1.setMaximumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPMODE1.setMinimumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPMODE1.setPreferredSize(new java.awt.Dimension(120, 23));
    cmdSetCIPMODE1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPMODE1ActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPSERVER.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCIPSERVER.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/web_server_start.png")));
    cmdSetCIPSERVER.setText("CIPSERVER Start/Stop");
    cmdSetCIPSERVER.setToolTipText("Set TCP server (Start and down)");
    cmdSetCIPSERVER.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPSERVER.setMaximumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPSERVER.setMinimumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPSERVER.setPreferredSize(new java.awt.Dimension(120, 23));
    cmdSetCIPSERVER.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPSERVERActionPerformed(evt);
        }
    });
    // NOI18N
    ServerMode.setFont(new java.awt.Font("Tahoma", 0, 12));
    ServerMode.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0 - Delete Server", "1 - Create Server" }));
    ServerMode.setSelectedIndex(1);
    ServerMode.setToolTipText("Select MODE for CIPSERVER command");
    ServerMode.setAlignmentX(0.0F);
    ServerMode.setMaximumSize(new java.awt.Dimension(120, 23));
    ServerMode.setMinimumSize(new java.awt.Dimension(120, 23));
    ServerMode.setPreferredSize(new java.awt.Dimension(120, 23));
    ServerMode.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ServerModeActionPerformed(evt);
        }
    });
    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel5.setText("port");
    // NOI18N
    ServerPort.setFont(new java.awt.Font("Tahoma", 0, 10));
    ServerPort.setText("80");
    ServerPort.setMaximumSize(new java.awt.Dimension(100, 23));
    ServerPort.setMinimumSize(new java.awt.Dimension(100, 23));
    ServerPort.setPreferredSize(new java.awt.Dimension(100, 23));
    // NOI18N
    cmdGetCIPSTO.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdGetCIPSTO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/get.png")));
    cmdGetCIPSTO.setText("CIPSTO?");
    cmdGetCIPSTO.setToolTipText("Get current server timeout");
    cmdGetCIPSTO.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCIPSTO.setMaximumSize(new java.awt.Dimension(120, 23));
    cmdGetCIPSTO.setMinimumSize(new java.awt.Dimension(120, 23));
    cmdGetCIPSTO.setPreferredSize(new java.awt.Dimension(120, 23));
    cmdGetCIPSTO.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPSTOActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSetCIPSTO.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    cmdSetCIPSTO.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/set.png")));
    cmdSetCIPSTO.setText("CIPSTO=");
    cmdSetCIPSTO.setToolTipText("Set current server timeout");
    cmdSetCIPSTO.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCIPSTO.setMaximumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPSTO.setMinimumSize(new java.awt.Dimension(120, 23));
    cmdSetCIPSTO.setPreferredSize(new java.awt.Dimension(120, 23));
    cmdSetCIPSTO.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPSTOActionPerformed(evt);
        }
    });
    // NOI18N
    ServerTimeout.setFont(new java.awt.Font("Tahoma", 0, 10));
    ServerTimeout.setText("60");
    ServerTimeout.setToolTipText("Set server timeout ");
    ServerTimeout.setMaximumSize(new java.awt.Dimension(120, 23));
    ServerTimeout.setMinimumSize(new java.awt.Dimension(120, 23));
    ServerTimeout.setPreferredSize(new java.awt.Dimension(120, 23));
    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel6.setText("Server timeout");
    TCPServerBottomPane.setLayer(cmdGetCIPMODE, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(cmdSetCIPMODE0, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(cmdSetCIPMODE1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(cmdSetCIPSERVER, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(ServerMode, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(ServerPort, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(cmdGetCIPSTO, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(cmdSetCIPSTO, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(ServerTimeout, javax.swing.JLayeredPane.DEFAULT_LAYER);
    TCPServerBottomPane.setLayer(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout TCPServerBottomPaneLayout = new javax.swing.GroupLayout(TCPServerBottomPane);
    TCPServerBottomPane.setLayout(TCPServerBottomPaneLayout);
    TCPServerBottomPaneLayout.setHorizontalGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPServerBottomPaneLayout.createSequentialGroup().addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(cmdSetCIPSERVER, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(ServerMode, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCIPSTO, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPServerBottomPaneLayout.createSequentialGroup().addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(ServerTimeout, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(cmdSetCIPMODE1, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdGetCIPSTO, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))).addComponent(cmdGetCIPMODE, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSetCIPMODE0, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(TCPServerBottomPaneLayout.createSequentialGroup().addContainerGap().addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(ServerPort, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    TCPServerBottomPaneLayout.setVerticalGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(TCPServerBottomPaneLayout.createSequentialGroup().addComponent(cmdGetCIPMODE, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdSetCIPMODE0, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdSetCIPMODE1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdGetCIPSTO, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(ServerTimeout, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel6)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(cmdSetCIPSTO, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(ServerMode, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(TCPServerBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel5).addComponent(ServerPort, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSetCIPSERVER, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 304, Short.MAX_VALUE)));
    javax.swing.GroupLayout AT_ServerLayout = new javax.swing.GroupLayout(AT_Server);
    AT_Server.setLayout(AT_ServerLayout);
    AT_ServerLayout.setHorizontalGroup(AT_ServerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(TCPServerBottomPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(TCPServerTopFiller, javax.swing.GroupLayout.DEFAULT_SIZE, 535, Short.MAX_VALUE));
    AT_ServerLayout.setVerticalGroup(AT_ServerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AT_ServerLayout.createSequentialGroup().addComponent(TCPServerTopFiller, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(TCPServerBottomPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
    TabAT.addTab("TCP/IP Server", AT_Server);
    ATvXX.add(TabAT, new org.netbeans.lib.awtextra.AbsoluteConstraints(2, 70, 540, 645));
    TCP_common.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Common TCP commands"));
    TCP_common.setAlignmentX(0.0F);
    TCP_common.setAlignmentY(0.0F);
    TCP_common.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    TCP_common.setMaximumSize(new java.awt.Dimension(445, 45));
    TCP_common.setMinimumSize(new java.awt.Dimension(445, 45));
    TCP_common.setOpaque(true);
    TCP_common.setLayout(new java.awt.FlowLayout());
    cmdGetCIPSTATUS.setText("CIPSTATUS");
    cmdGetCIPSTATUS.setToolTipText("Get information about connection ( 2 - got IP, 3 - Connected, 4 - Disconnected )");
    cmdGetCIPSTATUS.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPSTATUSActionPerformed(evt);
        }
    });
    TCP_common.add(cmdGetCIPSTATUS);
    cmdGetCIPMUX.setText("CIPMUX?");
    cmdGetCIPMUX.setToolTipText("Get information about current mode: Single or Multiple connection allowed");
    cmdGetCIPMUX.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIPMUXActionPerformed(evt);
        }
    });
    TCP_common.add(cmdGetCIPMUX);
    cmdSetCIPMUX1.setText("CIPMUX=1");
    cmdSetCIPMUX1.setToolTipText("Set mode for Multiple connections allowed");
    cmdSetCIPMUX1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPMUX1ActionPerformed(evt);
        }
    });
    TCP_common.add(cmdSetCIPMUX1);
    cmdSetCIPMUX0.setText("CIPMUX=0");
    cmdSetCIPMUX0.setToolTipText("Set mode for Single only connection allowed");
    cmdSetCIPMUX0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCIPMUX0ActionPerformed(evt);
        }
    });
    TCP_common.add(cmdSetCIPMUX0);
    cmdGetCIFSR.setText("CIFSR");
    cmdGetCIFSR.setToolTipText("Get local IP address (softAP or Station)");
    cmdGetCIFSR.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCIFSRActionPerformed(evt);
        }
    });
    TCP_common.add(cmdGetCIFSR);
    ATvXX.setLayer(TCP_common, javax.swing.JLayeredPane.PALETTE_LAYER);
    ATvXX.add(TCP_common, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 100, 540, 60));
    WiFi_common.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Common WiFi commands"));
    WiFi_common.setAlignmentX(0.0F);
    WiFi_common.setAlignmentY(0.0F);
    WiFi_common.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    // NOI18N
    WiFi_common.setName("");
    WiFi_common.setOpaque(true);
    WiFi_common.setPreferredSize(new java.awt.Dimension(445, 110));
    WiFi_common.setLayout(new java.awt.FlowLayout());
    cmdGetHelpCWMODE.setText("CWMODE=? - Get available modes");
    cmdGetHelpCWMODE.setToolTipText("Get value scope of WiFi mode (CommandWifiMODE)");
    cmdGetHelpCWMODE.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetHelpCWMODE.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetHelpCWMODE.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetHelpCWMODE.setPreferredSize(new java.awt.Dimension(210, 23));
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, cmdGetHelpCWMODE, org.jdesktop.beansbinding.ELProperty.create("${font}"), cmdGetHelpCWMODE, org.jdesktop.beansbinding.BeanProperty.create("font"));
    bindingGroup.addBinding(binding);
    cmdGetHelpCWMODE.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetHelpCWMODEActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdGetHelpCWMODE);
    cmdSetCWMODE1.setText("CWMODE=1 Station");
    cmdSetCWMODE1.setToolTipText("Set ESP8266 WiFi mode 1 - Station");
    cmdSetCWMODE1.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWMODE1.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWMODE1.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWMODE1.setPreferredSize(new java.awt.Dimension(210, 23));
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, cmdGetHelpCWMODE, org.jdesktop.beansbinding.ELProperty.create("${font}"), cmdSetCWMODE1, org.jdesktop.beansbinding.BeanProperty.create("font"));
    bindingGroup.addBinding(binding);
    cmdSetCWMODE1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWMODE1ActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdSetCWMODE1);
    cmdGetCWMODE.setText("CWMODE? - Get current mode");
    cmdGetCWMODE.setToolTipText("Query ESP8266’s current WiFi mode. (CommandWifiMODE)");
    cmdGetCWMODE.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdGetCWMODE.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdGetCWMODE.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdGetCWMODE.setPreferredSize(new java.awt.Dimension(210, 23));
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, cmdGetHelpCWMODE, org.jdesktop.beansbinding.ELProperty.create("${font}"), cmdGetCWMODE, org.jdesktop.beansbinding.BeanProperty.create("font"));
    bindingGroup.addBinding(binding);
    cmdGetCWMODE.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdGetCWMODEActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdGetCWMODE);
    cmdSetCWMODE2.setText("CWMODE=2 softAP");
    cmdSetCWMODE2.setToolTipText("Set ESP8266 WiFi mode 2 - Soft Access Point mode");
    cmdSetCWMODE2.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWMODE2.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWMODE2.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWMODE2.setPreferredSize(new java.awt.Dimension(210, 23));
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, cmdGetHelpCWMODE, org.jdesktop.beansbinding.ELProperty.create("${font}"), cmdSetCWMODE2, org.jdesktop.beansbinding.BeanProperty.create("font"));
    bindingGroup.addBinding(binding);
    cmdSetCWMODE2.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWMODE2ActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdSetCWMODE2);
    // NOI18N
    cmdSetCWLAP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/search again.png")));
    cmdSetCWLAP.setText("CWLAP - Get AP list");
    cmdSetCWLAP.setToolTipText("Lists all available WiFi Access Points");
    cmdSetCWLAP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWLAP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWLAP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWLAP.setPreferredSize(new java.awt.Dimension(210, 23));
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, cmdGetHelpCWMODE, org.jdesktop.beansbinding.ELProperty.create("${font}"), cmdSetCWLAP, org.jdesktop.beansbinding.BeanProperty.create("font"));
    bindingGroup.addBinding(binding);
    cmdSetCWLAP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWLAPActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdSetCWLAP);
    cmdSetCWMODE3.setText("CWMODE=3 softAP + Station");
    cmdSetCWMODE3.setToolTipText("Set ESP8266 WiFi mode 3 - Soft Access Point mode + Station");
    cmdSetCWMODE3.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWMODE3.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWMODE3.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWMODE3.setPreferredSize(new java.awt.Dimension(210, 23));
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, cmdGetHelpCWMODE, org.jdesktop.beansbinding.ELProperty.create("${font}"), cmdSetCWMODE3, org.jdesktop.beansbinding.BeanProperty.create("font"));
    bindingGroup.addBinding(binding);
    cmdSetCWMODE3.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWMODE3ActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdSetCWMODE3);
    DHCP.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0 - Enable DHCP", "1 - Disable DHCP" }));
    DHCP.setMaximumSize(new java.awt.Dimension(114, 23));
    DHCP.setMinimumSize(new java.awt.Dimension(114, 23));
    DHCP.setPreferredSize(new java.awt.Dimension(114, 23));
    WiFi_common.add(DHCP);
    DHCPmode.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0 - Set softAP", "1 - Set Station", "2 - Set both AP&Sta" }));
    DHCPmode.setSelectedIndex(1);
    DHCPmode.setMaximumSize(new java.awt.Dimension(90, 23));
    DHCPmode.setMinimumSize(new java.awt.Dimension(90, 23));
    DHCPmode.setPreferredSize(new java.awt.Dimension(90, 23));
    WiFi_common.add(DHCPmode);
    // NOI18N
    cmdSetCWDHCP.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSetCWDHCP.setText("AT+CWDHCP  DHCP control");
    cmdSetCWDHCP.setToolTipText("Enable/Disable DHCP");
    cmdSetCWDHCP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSetCWDHCP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdSetCWDHCP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSetCWDHCP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdSetCWDHCP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSetCWDHCPActionPerformed(evt);
        }
    });
    WiFi_common.add(cmdSetCWDHCP);
    ATvXX.setLayer(WiFi_common, javax.swing.JLayeredPane.PALETTE_LAYER);
    ATvXX.add(WiFi_common, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 100, 540, 140));
    LeftTab.addTab(" AT-based ", ATvXX);
    RN2483.setOpaque(true);
    MacPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    LoRaMAC.setOpaque(true);
    LoRaMAC.setPreferredSize(new java.awt.Dimension(729, 600));
    MacCommon.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameters"));
    cmdMacSetAdrOn.setText("mac set adr on");
    cmdMacSetAdrOn.setToolTipText("sys reset");
    cmdMacSetAdrOn.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetAdrOn.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAdrOn.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAdrOn.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetAdrOn.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetAdrOnActionPerformed(evt);
        }
    });
    cmdMacSetDR.setText("mac set dr (Data Rate)");
    cmdMacSetDR.setToolTipText("sys reset");
    cmdMacSetDR.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetDR.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetDR.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetDR.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetDR.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetDRActionPerformed(evt);
        }
    });
    cmdMacSetPwrIdx.setText("mac set pwridx (Power)");
    cmdMacSetPwrIdx.setToolTipText("sys reset");
    cmdMacSetPwrIdx.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetPwrIdx.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetPwrIdx.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetPwrIdx.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetPwrIdx.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetPwrIdxActionPerformed(evt);
        }
    });
    cmdMacGetStatus.setText("mac get status");
    cmdMacGetStatus.setToolTipText("sys reset");
    cmdMacGetStatus.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetStatus.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetStatus.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetStatus.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetStatus.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetStatusActionPerformed(evt);
        }
    });
    cmdMacSetAdrOff.setText("mac set adr off");
    cmdMacSetAdrOff.setToolTipText("sys reset");
    cmdMacSetAdrOff.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetAdrOff.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAdrOff.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAdrOff.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetAdrOff.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetAdrOffActionPerformed(evt);
        }
    });
    cmdMacGetAdr.setText("mac get adr");
    cmdMacGetAdr.setToolTipText("sys reset");
    cmdMacGetAdr.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetAdr.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetAdr.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetAdr.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetAdr.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetAdrActionPerformed(evt);
        }
    });
    MacDR.setText("5");
    MacDR.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MacDRActionPerformed(evt);
        }
    });
    MacPower.setText("1");
    MacPower.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MacPowerActionPerformed(evt);
        }
    });
    cmdMacGetDR.setText("mac get dr");
    cmdMacGetDR.setToolTipText("sys reset");
    cmdMacGetDR.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetDR.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetDR.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetDR.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetDR.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetDRActionPerformed(evt);
        }
    });
    cmdMacGetPwrIdx.setText("mac get pwridx");
    cmdMacGetPwrIdx.setToolTipText("sys reset");
    cmdMacGetPwrIdx.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetPwrIdx.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetPwrIdx.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetPwrIdx.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetPwrIdx.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetPwrIdxActionPerformed(evt);
        }
    });
    MacCommon.setLayer(cmdMacSetAdrOn, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacSetDR, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacSetPwrIdx, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacGetStatus, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacSetAdrOff, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacGetAdr, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(MacDR, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(MacPower, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacGetDR, javax.swing.JLayeredPane.DEFAULT_LAYER);
    MacCommon.setLayer(cmdMacGetPwrIdx, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout MacCommonLayout = new javax.swing.GroupLayout(MacCommon);
    MacCommon.setLayout(MacCommonLayout);
    MacCommonLayout.setHorizontalGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MacCommonLayout.createSequentialGroup().addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(cmdMacGetStatus, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 180, Short.MAX_VALUE).addComponent(cmdMacSetPwrIdx, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdMacSetDR, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdMacSetAdrOn, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(cmdMacSetAdrOff, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MacDR).addComponent(MacPower)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(cmdMacGetDR, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetAdr, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)).addComponent(cmdMacGetPwrIdx, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    MacCommonLayout.setVerticalGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(MacCommonLayout.createSequentialGroup().addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetAdrOn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacSetAdrOff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetAdr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetDR, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MacDR, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetDR, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(MacCommonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetPwrIdx, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MacPower, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetPwrIdx, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdMacGetStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
    SendUnconfirmed.setBorder(javax.swing.BorderFactory.createTitledBorder("Send Data"));
    cmdMacTX.setText("Transmit data");
    cmdMacTX.setToolTipText("sys reset");
    cmdMacTX.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacTX.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacTX.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacTX.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacTX.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacTXActionPerformed(evt);
        }
    });
    MacTxPort.setText("16");
    MacTxData.setText("48454c4c4f");
    TxConfirmed.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "uncnf", "cnf", " " }));
    TxConfirmed.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            TxConfirmedItemStateChanged(evt);
        }
    });
    TxConfirmed.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            TxConfirmedActionPerformed(evt);
        }
    });
    jLabel13.setText("default: HELLO");
    SendUnconfirmed.setLayer(cmdMacTX, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SendUnconfirmed.setLayer(MacTxPort, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SendUnconfirmed.setLayer(MacTxData, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SendUnconfirmed.setLayer(TxConfirmed, javax.swing.JLayeredPane.DEFAULT_LAYER);
    SendUnconfirmed.setLayer(jLabel13, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout SendUnconfirmedLayout = new javax.swing.GroupLayout(SendUnconfirmed);
    SendUnconfirmed.setLayout(SendUnconfirmedLayout);
    SendUnconfirmedLayout.setHorizontalGroup(SendUnconfirmedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(SendUnconfirmedLayout.createSequentialGroup().addComponent(cmdMacTX, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(TxConfirmed, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(MacTxPort, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(SendUnconfirmedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(MacTxData)).addContainerGap()));
    SendUnconfirmedLayout.setVerticalGroup(SendUnconfirmedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(SendUnconfirmedLayout.createSequentialGroup().addComponent(jLabel13).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(SendUnconfirmedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(MacTxData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MacTxPort, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addGroup(SendUnconfirmedLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacTX, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(TxConfirmed, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)));
    RadioPane.setBorder(javax.swing.BorderFactory.createTitledBorder("Radio"));
    MacSF.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "sf7", "sf8", "sf9", "sf10", "sf11", "sf12", " " }));
    MacSF.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MacSFItemStateChanged(evt);
        }
    });
    MacSF.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MacSFActionPerformed(evt);
        }
    });
    jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel11.setText("Spread Factor");
    RadioRxBandWidth.setText("25");
    RadioFreq.setText("868100000");
    cmdRadiosetRxBw.setText(" set rx band widh");
    cmdRadiosetRxBw.setToolTipText("sys reset");
    cmdRadiosetRxBw.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdRadiosetRxBw.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdRadiosetRxBw.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdRadiosetRxBw.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdRadiosetRxBw.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdRadiosetRxBwActionPerformed(evt);
        }
    });
    cmdRadioSetFreq.setText("radio set freq");
    cmdRadioSetFreq.setToolTipText("sys reset");
    cmdRadioSetFreq.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdRadioSetFreq.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdRadioSetFreq.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdRadioSetFreq.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdRadioSetFreq.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdRadioSetFreqActionPerformed(evt);
        }
    });
    cmdRadioGetSF.setText("radio get sf");
    cmdRadioGetSF.setToolTipText("sys reset");
    cmdRadioGetSF.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdRadioGetSF.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetSF.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetSF.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdRadioGetSF.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdRadioGetSFActionPerformed(evt);
        }
    });
    cmdRadioGetBw.setText("radio get bw");
    cmdRadioGetBw.setToolTipText("sys reset");
    cmdRadioGetBw.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdRadioGetBw.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetBw.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetBw.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdRadioGetBw.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdRadioGetBwActionPerformed(evt);
        }
    });
    cmdRadioGetRxBw.setText("radio get rxbw");
    cmdRadioGetRxBw.setToolTipText("sys reset");
    cmdRadioGetRxBw.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdRadioGetRxBw.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetRxBw.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetRxBw.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdRadioGetRxBw.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdRadioGetRxBwActionPerformed(evt);
        }
    });
    cmdRadioGetFreq.setText("radio get freq");
    cmdRadioGetFreq.setToolTipText("sys reset");
    cmdRadioGetFreq.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdRadioGetFreq.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetFreq.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdRadioGetFreq.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdRadioGetFreq.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdRadioGetFreqActionPerformed(evt);
        }
    });
    MacBandWidth.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "125", "250", "500", " " }));
    MacBandWidth.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MacBandWidthItemStateChanged(evt);
        }
    });
    MacBandWidth.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MacBandWidthActionPerformed(evt);
        }
    });
    jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel12.setText("Band Width");
    RadioPane.setLayer(MacSF, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(jLabel11, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(RadioRxBandWidth, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(RadioFreq, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(cmdRadiosetRxBw, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(cmdRadioSetFreq, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(cmdRadioGetSF, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(cmdRadioGetBw, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(cmdRadioGetRxBw, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(cmdRadioGetFreq, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(MacBandWidth, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RadioPane.setLayer(jLabel12, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout RadioPaneLayout = new javax.swing.GroupLayout(RadioPane);
    RadioPane.setLayout(RadioPaneLayout);
    RadioPaneLayout.setHorizontalGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RadioPaneLayout.createSequentialGroup().addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(jLabel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(cmdRadiosetRxBw, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdRadioSetFreq, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(jLabel12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(MacSF, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(RadioRxBandWidth).addComponent(RadioFreq, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE).addComponent(MacBandWidth, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(cmdRadioGetSF, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addComponent(cmdRadioGetBw, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdRadioGetRxBw, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdRadioGetFreq, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)).addGap(92, 92, 92)));
    RadioPaneLayout.setVerticalGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RadioPaneLayout.createSequentialGroup().addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel11).addComponent(MacSF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(cmdRadioGetSF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdRadioGetBw, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(MacBandWidth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jLabel12)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdRadiosetRxBw, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(RadioRxBandWidth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdRadioGetRxBw, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(RadioPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdRadioSetFreq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(RadioFreq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdRadioGetFreq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))));
    jLayeredPane1.setBorder(javax.swing.BorderFactory.createTitledBorder("System"));
    // NOI18N
    cmdSysReset.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSysReset.setText("sys reset");
    cmdSysReset.setToolTipText("sys reset");
    cmdSysReset.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSysReset.setMaximumSize(new java.awt.Dimension(210, 30));
    cmdSysReset.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSysReset.setPreferredSize(new java.awt.Dimension(210, 40));
    cmdSysReset.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSysResetActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSysFactoryReset.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSysFactoryReset.setText("sys factoryRESET");
    cmdSysFactoryReset.setToolTipText("");
    cmdSysFactoryReset.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSysFactoryReset.setMaximumSize(new java.awt.Dimension(210, 30));
    cmdSysFactoryReset.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSysFactoryReset.setPreferredSize(new java.awt.Dimension(210, 40));
    cmdSysFactoryReset.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSysFactoryResetActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSysGetVer.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSysGetVer.setText("sys get ver");
    cmdSysGetVer.setToolTipText("");
    cmdSysGetVer.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSysGetVer.setMaximumSize(new java.awt.Dimension(210, 30));
    cmdSysGetVer.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSysGetVer.setPreferredSize(new java.awt.Dimension(210, 40));
    cmdSysGetVer.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSysGetVerActionPerformed(evt);
        }
    });
    // NOI18N
    cmdSysGetHwEui.setFont(new java.awt.Font("Tahoma", 0, 12));
    cmdSysGetHwEui.setText("sys get hweui");
    cmdSysGetHwEui.setToolTipText("");
    cmdSysGetHwEui.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdSysGetHwEui.setMaximumSize(new java.awt.Dimension(210, 30));
    cmdSysGetHwEui.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdSysGetHwEui.setPreferredSize(new java.awt.Dimension(210, 40));
    cmdSysGetHwEui.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdSysGetHwEuiActionPerformed(evt);
        }
    });
    jLayeredPane1.setLayer(cmdSysReset, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(cmdSysFactoryReset, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(cmdSysGetVer, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(cmdSysGetHwEui, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1);
    jLayeredPane1.setLayout(jLayeredPane1Layout);
    jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jLayeredPane1Layout.createSequentialGroup().addComponent(cmdSysReset, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSysFactoryReset, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSysGetVer, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdSysGetHwEui, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(20, Short.MAX_VALUE)));
    jLayeredPane1Layout.setVerticalGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdSysReset, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSysGetVer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSysFactoryReset, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdSysGetHwEui, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
    LoRaMAC.setLayer(MacCommon, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LoRaMAC.setLayer(SendUnconfirmed, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LoRaMAC.setLayer(RadioPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LoRaMAC.setLayer(jLayeredPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout LoRaMACLayout = new javax.swing.GroupLayout(LoRaMAC);
    LoRaMAC.setLayout(LoRaMACLayout);
    LoRaMACLayout.setHorizontalGroup(LoRaMACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LoRaMACLayout.createSequentialGroup().addGroup(LoRaMACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(MacCommon).addComponent(RadioPane).addComponent(SendUnconfirmed).addComponent(jLayeredPane1)).addGap(199, 199, 199)));
    LoRaMACLayout.setVerticalGroup(LoRaMACLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LoRaMACLayout.createSequentialGroup().addComponent(MacCommon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(RadioPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SendUnconfirmed, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 276, Short.MAX_VALUE)));
    MacPane.setViewportView(LoRaMAC);
    RN2483jTab.addTab(" MAC & Radio", MacPane);
    ActivationPane.setPreferredSize(new java.awt.Dimension(537, 600));
    ABPPane.setBorder(javax.swing.BorderFactory.createTitledBorder("Activation By Personalization"));
    cmdMacSetDevAddr.setText("mac set devaddr");
    cmdMacSetDevAddr.setToolTipText("sys reset");
    cmdMacSetDevAddr.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetDevAddr.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetDevAddr.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetDevAddr.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetDevAddr.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetDevAddrActionPerformed(evt);
        }
    });
    cmdMacSetNwkSKey.setText("mac set nwkskey");
    cmdMacSetNwkSKey.setToolTipText("sys reset");
    cmdMacSetNwkSKey.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetNwkSKey.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetNwkSKey.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetNwkSKey.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetNwkSKey.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetNwkSKeyActionPerformed(evt);
        }
    });
    cmdMacSetAppSKey.setText("mac set appskey");
    cmdMacSetAppSKey.setToolTipText("sys reset");
    cmdMacSetAppSKey.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetAppSKey.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppSKey.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppSKey.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppSKey.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetAppSKeyActionPerformed(evt);
        }
    });
    // NOI18N
    cmdMacjoinABP.setFont(new java.awt.Font("Tahoma", 1, 12));
    cmdMacjoinABP.setText("Join ABP");
    cmdMacjoinABP.setToolTipText("sys reset");
    cmdMacjoinABP.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacjoinABP.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacjoinABP.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacjoinABP.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacjoinABP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacjoinABPActionPerformed(evt);
        }
    });
    cmdMacGetDevAddr.setText("mac get devaddr");
    cmdMacGetDevAddr.setToolTipText("sys reset");
    cmdMacGetDevAddr.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetDevAddr.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetDevAddr.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetDevAddr.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetDevAddr.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetDevAddrActionPerformed(evt);
        }
    });
    DevAddr.setText("00000000");
    DevAddr.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            DevAddrActionPerformed(evt);
        }
    });
    NwkSKey.setText("2B7E151628AED2A6ABF7158809CF4F3C");
    NwkSKey.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            NwkSKeyActionPerformed(evt);
        }
    });
    AppSKey.setText("2B7E151628AED2A6ABF7158809CF4F3C");
    AppSKey.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AppSKeyActionPerformed(evt);
        }
    });
    ABPPane.setLayer(cmdMacSetDevAddr, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(cmdMacSetNwkSKey, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(cmdMacSetAppSKey, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(cmdMacjoinABP, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(cmdMacGetDevAddr, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(DevAddr, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(NwkSKey, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ABPPane.setLayer(AppSKey, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout ABPPaneLayout = new javax.swing.GroupLayout(ABPPane);
    ABPPane.setLayout(ABPPaneLayout);
    ABPPaneLayout.setHorizontalGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(ABPPaneLayout.createSequentialGroup().addGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(cmdMacSetAppSKey, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdMacSetNwkSKey, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdMacSetDevAddr, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacjoinABP, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(NwkSKey).addComponent(DevAddr).addComponent(AppSKey)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdMacGetDevAddr, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 10, Short.MAX_VALUE)));
    ABPPaneLayout.setVerticalGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ABPPaneLayout.createSequentialGroup().addGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetDevAddr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(DevAddr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetDevAddr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetNwkSKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(NwkSKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(ABPPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetAppSKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(AppSKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(cmdMacjoinABP, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap()));
    // NOI18N
    cmdMacSave.setFont(new java.awt.Font("Tahoma", 1, 12));
    cmdMacSave.setText("Save");
    cmdMacSave.setToolTipText("sys reset");
    cmdMacSave.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSave.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSave.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSave.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSave.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSaveActionPerformed(evt);
        }
    });
    OTAAPane.setBorder(javax.swing.BorderFactory.createTitledBorder("Over The Air Activation"));
    cmdMacSetDevEui.setText("mac set deveui");
    cmdMacSetDevEui.setToolTipText("sys reset");
    cmdMacSetDevEui.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetDevEui.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetDevEui.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetDevEui.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetDevEui.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetDevEuiActionPerformed(evt);
        }
    });
    cmdMacSetAppEui.setText("mac set appeui");
    cmdMacSetAppEui.setToolTipText("sys reset");
    cmdMacSetAppEui.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetAppEui.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppEui.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppEui.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppEui.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetAppEuiActionPerformed(evt);
        }
    });
    cmdMacSetAppKey.setText("mac set appkey");
    cmdMacSetAppKey.setToolTipText("sys reset");
    cmdMacSetAppKey.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacSetAppKey.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppKey.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppKey.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacSetAppKey.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacSetAppKeyActionPerformed(evt);
        }
    });
    // NOI18N
    cmdMacJoinOTAA.setFont(new java.awt.Font("Tahoma", 1, 12));
    cmdMacJoinOTAA.setText("Join OTAA");
    cmdMacJoinOTAA.setToolTipText("sys reset");
    cmdMacJoinOTAA.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacJoinOTAA.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacJoinOTAA.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacJoinOTAA.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacJoinOTAA.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacJoinOTAAActionPerformed(evt);
        }
    });
    cmdMacGetDevEui.setText("mac get deveui");
    cmdMacGetDevEui.setToolTipText("sys reset");
    cmdMacGetDevEui.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetDevEui.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetDevEui.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetDevEui.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetDevEui.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetDevEuiActionPerformed(evt);
        }
    });
    cmdMacGetAppEui.setText("mac get appeui");
    cmdMacGetAppEui.setToolTipText("sys reset");
    cmdMacGetAppEui.setMargin(new java.awt.Insets(2, 2, 2, 2));
    cmdMacGetAppEui.setMaximumSize(new java.awt.Dimension(210, 23));
    cmdMacGetAppEui.setMinimumSize(new java.awt.Dimension(210, 23));
    cmdMacGetAppEui.setPreferredSize(new java.awt.Dimension(210, 23));
    cmdMacGetAppEui.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmdMacGetAppEuiActionPerformed(evt);
        }
    });
    DevEUI.setText("Enter Device EUI");
    DevEUI.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            DevEUIActionPerformed(evt);
        }
    });
    AppEUI.setText("Enter App EUI");
    AppEUI.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AppEUIActionPerformed(evt);
        }
    });
    AppKey.setText("Enter App Key");
    AppKey.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AppKeyActionPerformed(evt);
        }
    });
    OTAAPane.setLayer(cmdMacSetDevEui, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(cmdMacSetAppEui, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(cmdMacSetAppKey, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(cmdMacJoinOTAA, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(cmdMacGetDevEui, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(cmdMacGetAppEui, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(DevEUI, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(AppEUI, javax.swing.JLayeredPane.DEFAULT_LAYER);
    OTAAPane.setLayer(AppKey, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout OTAAPaneLayout = new javax.swing.GroupLayout(OTAAPane);
    OTAAPane.setLayout(OTAAPaneLayout);
    OTAAPaneLayout.setHorizontalGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(OTAAPaneLayout.createSequentialGroup().addGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(cmdMacSetDevEui, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacSetAppEui, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdMacSetAppKey, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE).addComponent(cmdMacJoinOTAA, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(AppEUI).addComponent(DevEUI, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE).addComponent(AppKey)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(cmdMacGetDevEui, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetAppEui, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)).addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    OTAAPaneLayout.setVerticalGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OTAAPaneLayout.createSequentialGroup().addGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetDevEui, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(DevEUI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetDevEui, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetAppEui, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(AppEUI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(cmdMacGetAppEui, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(OTAAPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(cmdMacSetAppKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(AppKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(cmdMacJoinOTAA, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap()));
    ActivationPane.setLayer(ABPPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ActivationPane.setLayer(cmdMacSave, javax.swing.JLayeredPane.DEFAULT_LAYER);
    ActivationPane.setLayer(OTAAPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout ActivationPaneLayout = new javax.swing.GroupLayout(ActivationPane);
    ActivationPane.setLayout(ActivationPaneLayout);
    ActivationPaneLayout.setHorizontalGroup(ActivationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(ActivationPaneLayout.createSequentialGroup().addGroup(ActivationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(OTAAPane, javax.swing.GroupLayout.Alignment.LEADING).addComponent(ABPPane, javax.swing.GroupLayout.Alignment.LEADING).addComponent(cmdMacSave, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGap(19, 19, 19)));
    ActivationPaneLayout.setVerticalGroup(ActivationPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(ActivationPaneLayout.createSequentialGroup().addComponent(ABPPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1).addComponent(cmdMacSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(OTAAPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 317, Short.MAX_VALUE)));
    ActivationScrollPane.setViewportView(ActivationPane);
    RN2483jTab.addTab(" Activation ", ActivationScrollPane);
    RN2483.setLayer(RN2483jTab, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout RN2483Layout = new javax.swing.GroupLayout(RN2483);
    RN2483.setLayout(RN2483Layout);
    RN2483Layout.setHorizontalGroup(RN2483Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RN2483jTab, javax.swing.GroupLayout.DEFAULT_SIZE, 544, Short.MAX_VALUE));
    RN2483Layout.setVerticalGroup(RN2483Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RN2483jTab, javax.swing.GroupLayout.DEFAULT_SIZE, 716, Short.MAX_VALUE));
    LeftTab.addTab(" RN2483 ", RN2483);
    LeftBasePane.setLayer(LeftTab, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout LeftBasePaneLayout = new javax.swing.GroupLayout(LeftBasePane);
    LeftBasePane.setLayout(LeftBasePaneLayout);
    LeftBasePaneLayout.setHorizontalGroup(LeftBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(LeftTab, javax.swing.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE));
    LeftBasePaneLayout.setVerticalGroup(LeftBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(LeftTab, javax.swing.GroupLayout.DEFAULT_SIZE, 744, Short.MAX_VALUE));
    LeftTab.getAccessibleContext().setAccessibleName("LeftTab");
    HorizontSplit.setLeftComponent(LeftBasePane);
    RightBasePane.setOpaque(true);
    LEDPanel.setMaximumSize(new java.awt.Dimension(392, 25));
    LEDPanel.setMinimumSize(new java.awt.Dimension(392, 25));
    LEDPanel.setOpaque(true);
    PortOpenLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    // NOI18N
    PortOpenLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/led_grey.png")));
    PortOpenLabel.setText("Open");
    PortOpenLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    PortOpenLabel.setMaximumSize(new java.awt.Dimension(50, 25));
    PortOpenLabel.setMinimumSize(new java.awt.Dimension(50, 25));
    PortOpenLabel.setPreferredSize(new java.awt.Dimension(50, 25));
    PortOpenLabel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    PortCTS.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    // NOI18N
    PortCTS.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/led_grey.png")));
    PortCTS.setText("CTS");
    PortCTS.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    PortCTS.setMaximumSize(new java.awt.Dimension(50, 25));
    PortCTS.setMinimumSize(new java.awt.Dimension(50, 25));
    PortCTS.setPreferredSize(new java.awt.Dimension(50, 25));
    PortCTS.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    // NOI18N
    PortDTR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/led_grey.png")));
    PortDTR.setText("DTR");
    PortDTR.setToolTipText("");
    PortDTR.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    PortDTR.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    PortDTR.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    PortDTR.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PortDTRActionPerformed(evt);
        }
    });
    // NOI18N
    PortRTS.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/led_grey.png")));
    PortRTS.setText("RTS");
    PortRTS.setToolTipText("");
    PortRTS.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    PortRTS.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    PortRTS.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    PortRTS.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PortRTSActionPerformed(evt);
        }
    });
    // NOI18N
    Open.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    Open.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/connect1.png")));
    Open.setText("Open");
    Open.setToolTipText("Open/Close selected serial port");
    Open.setIconTextGap(2);
    Open.setMargin(new java.awt.Insets(1, 1, 1, 1));
    Open.setMaximumSize(new java.awt.Dimension(100, 25));
    Open.setMinimumSize(new java.awt.Dimension(85, 25));
    Open.setPreferredSize(new java.awt.Dimension(80, 25));
    Open.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            OpenActionPerformed(evt);
        }
    });
    // NOI18N
    Speed.setFont(new java.awt.Font("Tahoma", 0, 12));
    Speed.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1200", "2400", "4800", "9600", "19200", "38400", "57600", "74880", "115200", "230400", "460800", "921600" }));
    Speed.setToolTipText("Select baud rate");
    Speed.setMaximumSize(new java.awt.Dimension(80, 25));
    Speed.setMinimumSize(new java.awt.Dimension(80, 25));
    Speed.setPreferredSize(new java.awt.Dimension(80, 25));
    Speed.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            SpeedItemStateChanged(evt);
        }
    });
    Speed.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SpeedActionPerformed(evt);
        }
    });
    Speed.addFocusListener(new java.awt.event.FocusAdapter() {

        public void focusLost(java.awt.event.FocusEvent evt) {
            SpeedFocusLost(evt);
        }
    });
    // NOI18N
    ReScan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/refresh3.png")));
    ReScan.setToolTipText("Scan system for available serial port");
    ReScan.setMaximumSize(new java.awt.Dimension(25, 25));
    ReScan.setMinimumSize(new java.awt.Dimension(25, 25));
    ReScan.setPreferredSize(new java.awt.Dimension(25, 25));
    ReScan.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ReScanActionPerformed(evt);
        }
    });
    // NOI18N
    AutoScroll.setFont(new java.awt.Font("Tahoma", 0, 8));
    AutoScroll.setSelected(true);
    AutoScroll.setText("AutoScroll");
    AutoScroll.setToolTipText("Terminal AutoScroll Enable/Disable");
    AutoScroll.setMinimumSize(new java.awt.Dimension(70, 25));
    AutoScroll.setPreferredSize(new java.awt.Dimension(60, 25));
    AutoScroll.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AutoScrollActionPerformed(evt);
        }
    });
    // NOI18N
    Port.setFont(new java.awt.Font("Tahoma", 0, 10));
    Port.setMaximumRowCount(20);
    Port.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "COM1", "COM3" }));
    Port.setToolTipText("Serial port chooser");
    Port.setMaximumSize(new java.awt.Dimension(150, 25));
    Port.setMinimumSize(new java.awt.Dimension(150, 25));
    Port.setPreferredSize(new java.awt.Dimension(150, 25));
    Port.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            PortItemStateChanged(evt);
        }
    });
    Port.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PortActionPerformed(evt);
        }
    });
    // NOI18N
    EOL.setFont(new java.awt.Font("Tahoma", 0, 8));
    EOL.setText("EOL");
    EOL.setToolTipText("EOL visible Enable/Disable");
    EOL.setMinimumSize(new java.awt.Dimension(70, 25));
    EOL.setPreferredSize(new java.awt.Dimension(60, 25));
    EOL.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            EOLItemStateChanged(evt);
        }
    });
    CR.setFont(CR.getFont().deriveFont(CR.getFont().getSize() - 4f));
    CR.setSelected(true);
    CR.setText("CR");
    CR.setToolTipText("Add CR at end of line");
    CR.setAlignmentY(0.0F);
    CR.setEnabled(false);
    CR.setIconTextGap(0);
    CR.setMargin(new java.awt.Insets(0, 0, 0, 0));
    // NOI18N
    CR.setName("");
    CR.setNextFocusableComponent(Command);
    LF.setFont(LF.getFont().deriveFont(LF.getFont().getSize() - 4f));
    LF.setSelected(true);
    LF.setText("LF");
    LF.setToolTipText("Add LF at end of line");
    LF.setAlignmentY(0.0F);
    LF.setEnabled(false);
    LF.setIconTextGap(0);
    LF.setMargin(new java.awt.Insets(0, 0, 0, 0));
    // NOI18N
    DonateSmall.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/donate-small.gif")));
    DonateSmall.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    DonateSmall.setMargin(new java.awt.Insets(2, 2, 2, 2));
    DonateSmall.setMaximumSize(new java.awt.Dimension(100, 35));
    DonateSmall.setMinimumSize(new java.awt.Dimension(100, 35));
    DonateSmall.setPreferredSize(new java.awt.Dimension(100, 35));
    DonateSmall.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            DonateSmallActionPerformed(evt);
        }
    });
    TerminalOnlyCheckBox.setFont(TerminalOnlyCheckBox.getFont().deriveFont(TerminalOnlyCheckBox.getFont().getSize() - 4f));
    TerminalOnlyCheckBox.setText(" Hide Editor");
    TerminalOnlyCheckBox.setToolTipText("Add LF at end of line");
    TerminalOnlyCheckBox.setAlignmentY(0.0F);
    TerminalOnlyCheckBox.setIconTextGap(0);
    TerminalOnlyCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    TerminalOnlyCheckBox.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            TerminalOnlyCheckBoxItemStateChanged(evt);
        }
    });
    EditorOnlyCheckBox.setFont(EditorOnlyCheckBox.getFont().deriveFont(EditorOnlyCheckBox.getFont().getSize() - 4f));
    EditorOnlyCheckBox.setText(" Hide Terminal");
    EditorOnlyCheckBox.setToolTipText("Add LF at end of line");
    EditorOnlyCheckBox.setAlignmentY(0.0F);
    EditorOnlyCheckBox.setIconTextGap(0);
    EditorOnlyCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    EditorOnlyCheckBox.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            EditorOnlyCheckBoxItemStateChanged(evt);
        }
    });
    LEDPanel.setLayer(PortOpenLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(PortCTS, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(PortDTR, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(PortRTS, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(Open, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(Speed, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(ReScan, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(AutoScroll, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(Port, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(EOL, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(CR, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(LF, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(DonateSmall, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(TerminalOnlyCheckBox, javax.swing.JLayeredPane.DEFAULT_LAYER);
    LEDPanel.setLayer(EditorOnlyCheckBox, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout LEDPanelLayout = new javax.swing.GroupLayout(LEDPanel);
    LEDPanel.setLayout(LEDPanelLayout);
    LEDPanelLayout.setHorizontalGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LEDPanelLayout.createSequentialGroup().addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LEDPanelLayout.createSequentialGroup().addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(PortDTR).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(PortRTS)).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(PortOpenLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(PortCTS, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(Open, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(ReScan, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(EOL, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(AutoScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(LF).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(EditorOnlyCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(CR).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(TerminalOnlyCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(Speed, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(DonateSmall, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))).addComponent(Port, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap()));
    LEDPanelLayout.setVerticalGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(LEDPanelLayout.createSequentialGroup().addComponent(Port, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, LEDPanelLayout.createSequentialGroup().addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(ReScan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(LEDPanelLayout.createSequentialGroup().addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(AutoScroll, javax.swing.GroupLayout.PREFERRED_SIZE, 19, Short.MAX_VALUE).addComponent(CR).addComponent(TerminalOnlyCheckBox)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(EOL, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(LF).addComponent(EditorOnlyCheckBox)))).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(Speed, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(DonateSmall, javax.swing.GroupLayout.DEFAULT_SIZE, 45, Short.MAX_VALUE))).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, LEDPanelLayout.createSequentialGroup().addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(PortOpenLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(PortCTS, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(LEDPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(PortDTR).addComponent(PortRTS))).addComponent(Open, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    Port.getAccessibleContext().setAccessibleName("");
    RightBottomPane.setAlignmentX(0.0F);
    RightBottomPane.setAlignmentY(0.0F);
    RightBottomPane.setOpaque(true);
    Command.setEditable(true);
    // NOI18N
    Command.setFont(new java.awt.Font("Tahoma", 0, 12));
    Command.setMaximumRowCount(20);
    Command.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "AT", "AT+GMR", "AT+RST", "" }));
    Command.setToolTipText("Command to send");
    Command.setAlignmentX(0.0F);
    Command.setAlignmentY(0.0F);
    Command.setAutoscrolls(true);
    Command.setEnabled(false);
    // NOI18N
    Command.setName("Command");
    Command.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            CommandItemStateChanged(evt);
        }
    });
    Command.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CommandActionPerformed(evt);
        }
    });
    Command.addKeyListener(new java.awt.event.KeyAdapter() {

        public void keyPressed(java.awt.event.KeyEvent evt) {
            CommandKeyPressed(evt);
        }

        public void keyReleased(java.awt.event.KeyEvent evt) {
            CommandKeyReleased(evt);
        }

        public void keyTyped(java.awt.event.KeyEvent evt) {
            CommandKeyTyped(evt);
        }
    });
    RightBottomPane.setLayer(Command, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout RightBottomPaneLayout = new javax.swing.GroupLayout(RightBottomPane);
    RightBottomPane.setLayout(RightBottomPaneLayout);
    RightBottomPaneLayout.setHorizontalGroup(RightBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(Command, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    RightBottomPaneLayout.setVerticalGroup(RightBottomPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(Command, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE));
    Command.getAccessibleContext().setAccessibleName("Command");
    RightBigPane.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
    RightBigPane.setOpaque(true);
    RightBigPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            RightBigPanePropertyChange(evt);
        }
    });
    RightFilesSplitPane.setDividerLocation(300);
    RightFilesSplitPane.setAutoscrolls(true);
    RightFilesSplitPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            RightFilesSplitPanePropertyChange(evt);
        }
    });
    RightSplitPane.setBorder(null);
    RightSplitPane.setDividerLocation(320);
    RightSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    RightSplitPane.setToolTipText("");
    // NOI18N
    RightSplitPane.setName("");
    RightSplitPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            RightSplitPanePropertyChange(evt);
        }
    });
    TerminalPane.setToolTipText("Terminal window");
    TerminalPane.setMaximumSize(new java.awt.Dimension(100, 100));
    TerminalPane.setMinimumSize(new java.awt.Dimension(100, 100));
    // NOI18N
    TerminalPane.setName("");
    TerminalPane.setPreferredSize(new java.awt.Dimension(100, 100));
    TerminalPane.setViewportView(Terminal);
    Terminal.setEditable(false);
    Terminal.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
    Terminal.setColumns(20);
    Terminal.setRows(50);
    Terminal.setTabSize(4);
    Terminal.setToolTipText("");
    Terminal.setWrapStyleWord(false);
    Terminal.setBracketMatchingEnabled(false);
    Terminal.setCloseCurlyBraces(false);
    Terminal.setCloseMarkupTags(false);
    Terminal.setDragEnabled(false);
    Terminal.setFadeCurrentLineHighlight(true);
    Terminal.setHighlightSecondaryLanguages(false);
    Terminal.setMaximumSize(new java.awt.Dimension(100, 100));
    Terminal.setMinimumSize(new java.awt.Dimension(100, 100));
    // NOI18N
    Terminal.setName("");
    Terminal.setPopupMenu(ContextMenuTerminal);
    Terminal.setSyntaxEditingStyle("text/LUA");
    Terminal.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            TerminalPropertyChange(evt);
        }
    });
    TerminalPane.setViewportView(Terminal);
    Terminal.getAccessibleContext().setAccessibleParent(TerminalPane);
    RightSplitPane.setTopComponent(TerminalPane);
    ScrollLog.setBorder(TerminalPane.getBorder());
    ScrollLog.setToolTipText("Log");
    ScrollLog.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    ScrollLog.setAlignmentX(0.0F);
    ScrollLog.setAlignmentY(0.0F);
    Log.setEditable(false);
    Log.setBackground(new java.awt.Color(51, 51, 51));
    Log.setColumns(20);
    Log.setFont(Log.getFont().deriveFont(Log.getFont().getSize() - 1f));
    Log.setForeground(new java.awt.Color(0, 204, 0));
    Log.setLineWrap(true);
    Log.setRows(3);
    Log.setTabSize(4);
    Log.setText("Logging enable");
    Log.setToolTipText("Log");
    Log.setWrapStyleWord(true);
    Log.setAlignmentX(0.0F);
    Log.setAlignmentY(0.0F);
    Log.setBorder(Terminal.getBorder());
    Log.setComponentPopupMenu(ContextMenuLog);
    Log.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    Log.setMargin(new java.awt.Insets(0, 0, 0, 0));
    // NOI18N
    Log.setName("Log");
    Log.setNextFocusableComponent(SendCommand);
    Log.setSelectionColor(new java.awt.Color(204, 0, 0));
    Log.setSelectionEnd(0);
    Log.addCaretListener(new javax.swing.event.CaretListener() {

        public void caretUpdate(javax.swing.event.CaretEvent evt) {
            LogCaretUpdate(evt);
        }
    });
    ScrollLog.setViewportView(Log);
    Log.getAccessibleContext().setAccessibleName("Log");
    RightSplitPane.setBottomComponent(ScrollLog);
    TerminalLogPane.setLayer(RightSplitPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout TerminalLogPaneLayout = new javax.swing.GroupLayout(TerminalLogPane);
    TerminalLogPane.setLayout(TerminalLogPaneLayout);
    TerminalLogPaneLayout.setHorizontalGroup(TerminalLogPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 293, Short.MAX_VALUE).addGroup(TerminalLogPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RightSplitPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)));
    TerminalLogPaneLayout.setVerticalGroup(TerminalLogPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 421, Short.MAX_VALUE).addGroup(TerminalLogPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RightSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)));
    RightFilesSplitPane.setLeftComponent(TerminalLogPane);
    FileManagerScrollPane.setBorder(null);
    FileManagerScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    FileManagersLayer.setMaximumSize(new java.awt.Dimension(145, 145));
    NodeFileManagerPane.setComponentPopupMenu(ContextMenuFileManager);
    NodeFileManagerPane.setMaximumSize(new java.awt.Dimension(145, 145));
    // NOI18N
    NodeFileManagerPane.setName("");
    NodeFileManagerPane.setPreferredSize(new java.awt.Dimension(145, 145));
    java.awt.FlowLayout flowLayout1 = new java.awt.FlowLayout(java.awt.FlowLayout.LEADING, 2, 2);
    flowLayout1.setAlignOnBaseline(true);
    NodeFileManagerPane.setLayout(flowLayout1);
    // NOI18N
    FileFormat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file manager (delete).png")));
    FileFormat.setText("Format");
    FileFormat.setToolTipText("Format (erase) NodeMCU file system. All files will be removed!");
    FileFormat.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileFormat.setMargin(new java.awt.Insets(2, 4, 2, 4));
    FileFormat.setMaximumSize(new java.awt.Dimension(130, 25));
    FileFormat.setMinimumSize(new java.awt.Dimension(130, 25));
    FileFormat.setPreferredSize(new java.awt.Dimension(130, 25));
    FileFormat.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileFormatActionPerformed(evt);
        }
    });
    NodeFileManagerPane.add(FileFormat);
    // NOI18N
    FileSystemInfo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file manager.png")));
    FileSystemInfo.setText("FS Info");
    FileSystemInfo.setToolTipText("Execute command file.fsinfo() and show total, used and remainig space on the ESP filesystem");
    FileSystemInfo.setAlignmentX(0.5F);
    FileSystemInfo.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileSystemInfo.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileSystemInfo.setMaximumSize(new java.awt.Dimension(130, 25));
    FileSystemInfo.setPreferredSize(new java.awt.Dimension(130, 25));
    FileSystemInfo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileSystemInfoActionPerformed(evt);
        }
    });
    NodeFileManagerPane.add(FileSystemInfo);
    // NOI18N
    FileListReload.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    FileListReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/refresh3.png")));
    FileListReload.setText("Reload");
    FileListReload.setAlignmentX(0.5F);
    FileListReload.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileListReload.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileListReload.setMaximumSize(new java.awt.Dimension(130, 25));
    FileListReload.setPreferredSize(new java.awt.Dimension(130, 25));
    FileListReload.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileListReloadActionPerformed(evt);
        }
    });
    NodeFileManagerPane.add(FileListReload);
    // NOI18N
    FileAsButton1.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    FileAsButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file.png")));
    FileAsButton1.setText("File 1");
    FileAsButton1.setToolTipText("Left click");
    FileAsButton1.setAlignmentX(0.5F);
    FileAsButton1.setComponentPopupMenu(ContextMenuESPFileLUA);
    FileAsButton1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    FileAsButton1.setMargin(new java.awt.Insets(2, 2, 2, 2));
    FileAsButton1.setMaximumSize(new java.awt.Dimension(130, 25));
    FileAsButton1.setPreferredSize(new java.awt.Dimension(130, 25));
    FileAsButton1.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseClicked(java.awt.event.MouseEvent evt) {
            FileAsButton1MouseClicked(evt);
        }
    });
    FileAsButton1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileAsButton1ActionPerformed(evt);
        }
    });
    NodeFileManagerPane.add(FileAsButton1);
    FileRenamePanel.setMaximumSize(new java.awt.Dimension(130, 45));
    FileRenamePanel.setMinimumSize(new java.awt.Dimension(130, 45));
    FileRenameLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    FileRenameLabel.setText("Old file name");
    FileRenameLabel.setToolTipText("Input new file name and hit Enter to completed or press Reload for cancel");
    FileRenameLabel.setMaximumSize(new java.awt.Dimension(130, 14));
    FileRenameLabel.setMinimumSize(new java.awt.Dimension(130, 14));
    FileRenameLabel.setPreferredSize(new java.awt.Dimension(130, 14));
    FileRename.setText("NewFileName");
    FileRename.setToolTipText("Input new file name and hit Enter to completed or press Reload for cancel");
    FileRename.setMaximumSize(new java.awt.Dimension(130, 25));
    FileRename.setMinimumSize(new java.awt.Dimension(130, 25));
    FileRename.setPreferredSize(new java.awt.Dimension(130, 25));
    FileRename.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FileRenameActionPerformed(evt);
        }
    });
    FileRenamePanel.setLayer(FileRenameLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    FileRenamePanel.setLayer(FileRename, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout FileRenamePanelLayout = new javax.swing.GroupLayout(FileRenamePanel);
    FileRenamePanel.setLayout(FileRenamePanelLayout);
    FileRenamePanelLayout.setHorizontalGroup(FileRenamePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(FileRenamePanelLayout.createSequentialGroup().addGroup(FileRenamePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(FileRename, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(FileRenameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGap(0, 0, Short.MAX_VALUE)));
    FileRenamePanelLayout.setVerticalGroup(FileRenamePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(FileRenamePanelLayout.createSequentialGroup().addComponent(FileRenameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(FileRename, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 0, Short.MAX_VALUE)));
    NodeFileManagerPane.add(FileRenamePanel);
    PyFileManagerPane.setMaximumSize(new java.awt.Dimension(500, 155));
    PyFileManagerPane.setMinimumSize(new java.awt.Dimension(55, 55));
    PyFileManagerPane.setPreferredSize(new java.awt.Dimension(155, 155));
    PyFileManagerPane.setLayout(new java.awt.FlowLayout());
    // NOI18N
    PyListDir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/refresh3.png")));
    PyListDir.setText("ListDir /");
    PyListDir.setToolTipText("Execute command listdir() and show files");
    PyListDir.setAlignmentX(0.5F);
    PyListDir.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    PyListDir.setMargin(new java.awt.Insets(2, 2, 2, 2));
    PyListDir.setMaximumSize(new java.awt.Dimension(130, 25));
    PyListDir.setPreferredSize(new java.awt.Dimension(130, 25));
    PyListDir.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PyListDirActionPerformed(evt);
        }
    });
    PyFileManagerPane.add(PyListDir);
    // NOI18N
    PyFileAsButton1.setFont(new java.awt.Font("Tahoma", 0, 12));
    // NOI18N
    PyFileAsButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file.png")));
    PyFileAsButton1.setText("File 1");
    PyFileAsButton1.setToolTipText("Left click");
    PyFileAsButton1.setAlignmentX(0.5F);
    PyFileAsButton1.setComponentPopupMenu(ContextMenuESPFileLUA);
    PyFileAsButton1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    PyFileAsButton1.setMargin(new java.awt.Insets(2, 2, 2, 2));
    PyFileAsButton1.setMaximumSize(new java.awt.Dimension(130, 25));
    PyFileAsButton1.setPreferredSize(new java.awt.Dimension(130, 25));
    PyFileAsButton1.addMouseListener(new java.awt.event.MouseAdapter() {

        public void mouseClicked(java.awt.event.MouseEvent evt) {
            PyFileAsButton1MouseClicked(evt);
        }
    });
    PyFileAsButton1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PyFileAsButton1ActionPerformed(evt);
        }
    });
    PyFileManagerPane.add(PyFileAsButton1);
    FileManagersLayer.setLayer(NodeFileManagerPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    FileManagersLayer.setLayer(PyFileManagerPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout FileManagersLayerLayout = new javax.swing.GroupLayout(FileManagersLayer);
    FileManagersLayer.setLayout(FileManagersLayerLayout);
    FileManagersLayerLayout.setHorizontalGroup(FileManagersLayerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(FileManagersLayerLayout.createSequentialGroup().addGroup(FileManagersLayerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(PyFileManagerPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(NodeFileManagerPane, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 433, Short.MAX_VALUE)));
    FileManagersLayerLayout.setVerticalGroup(FileManagersLayerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(FileManagersLayerLayout.createSequentialGroup().addComponent(NodeFileManagerPane, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE).addGap(6, 6, 6).addComponent(PyFileManagerPane, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)));
    FileManagerScrollPane.setViewportView(FileManagersLayer);
    RightFilesSplitPane.setRightComponent(FileManagerScrollPane);
    RightSnippetsPane.setLayout(new java.awt.FlowLayout());
    // NOI18N
    ButtonSnippet0.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet0.setMnemonic(KeyEvent.VK_BACK_QUOTE);
    ButtonSnippet0.setText("Snippet0");
    ButtonSnippet0.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet0ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet0);
    // NOI18N
    ButtonSnippet1.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet1.setMnemonic(KeyEvent.VK_1);
    ButtonSnippet1.setText("Snippet1");
    ButtonSnippet1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet1ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet1);
    // NOI18N
    ButtonSnippet2.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet2.setMnemonic(KeyEvent.VK_2);
    ButtonSnippet2.setText("Snippet2");
    ButtonSnippet2.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet2ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet2);
    // NOI18N
    ButtonSnippet3.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet3.setMnemonic(KeyEvent.VK_3);
    ButtonSnippet3.setText("Snippet3");
    ButtonSnippet3.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet3ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet3);
    // NOI18N
    ButtonSnippet4.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet4.setMnemonic(KeyEvent.VK_4);
    ButtonSnippet4.setText("Snippet4");
    ButtonSnippet4.setToolTipText("");
    ButtonSnippet4.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet4ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet4);
    // NOI18N
    ButtonSnippet5.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet5.setMnemonic(KeyEvent.VK_5);
    ButtonSnippet5.setText("Snippet5");
    ButtonSnippet5.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet5ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet5);
    // NOI18N
    ButtonSnippet6.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet6.setMnemonic(KeyEvent.VK_6);
    ButtonSnippet6.setText("Snippet6");
    ButtonSnippet6.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet6ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet6);
    // NOI18N
    ButtonSnippet7.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet7.setMnemonic(KeyEvent.VK_7);
    ButtonSnippet7.setText("Snippet7");
    ButtonSnippet7.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet7ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet7);
    // NOI18N
    ButtonSnippet8.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet8.setMnemonic(KeyEvent.VK_8);
    ButtonSnippet8.setText("Snippet8");
    ButtonSnippet8.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet8ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet8);
    // NOI18N
    ButtonSnippet9.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet9.setMnemonic(KeyEvent.VK_9);
    ButtonSnippet9.setText("Snippet9");
    ButtonSnippet9.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet9ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet9);
    // NOI18N
    ButtonSnippet10.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet10.setMnemonic(KeyEvent.VK_0);
    ButtonSnippet10.setText("Snippet10");
    ButtonSnippet10.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet10ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet10);
    // NOI18N
    ButtonSnippet11.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet11.setMnemonic(KeyEvent.VK_MINUS);
    ButtonSnippet11.setText("Snippet11");
    ButtonSnippet11.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet11ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet11);
    // NOI18N
    ButtonSnippet12.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet12.setMnemonic(KeyEvent.VK_EQUALS);
    ButtonSnippet12.setText("Snippet12");
    ButtonSnippet12.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet12ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet12);
    // NOI18N
    ButtonSnippet13.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet13.setMnemonic(KeyEvent.VK_BACK_SLASH);
    ButtonSnippet13.setText("Snippet13");
    ButtonSnippet13.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet13ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet13);
    // NOI18N
    ButtonSnippet14.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet14.setMnemonic(KeyEvent.VK_BACK_SPACE);
    ButtonSnippet14.setText("Snippet14");
    ButtonSnippet14.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet14ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet14);
    // NOI18N
    ButtonSnippet15.setFont(new java.awt.Font("Tahoma", 0, 10));
    ButtonSnippet15.setText("Snippet15");
    ButtonSnippet15.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ButtonSnippet15ActionPerformed(evt);
        }
    });
    RightSnippetsPane.add(ButtonSnippet15);
    RightBigPane.setLayer(RightFilesSplitPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RightBigPane.setLayer(RightSnippetsPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout RightBigPaneLayout = new javax.swing.GroupLayout(RightBigPane);
    RightBigPane.setLayout(RightBigPaneLayout);
    RightBigPaneLayout.setHorizontalGroup(RightBigPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RightFilesSplitPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE).addComponent(RightSnippetsPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE));
    RightBigPaneLayout.setVerticalGroup(RightBigPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RightBigPaneLayout.createSequentialGroup().addComponent(RightFilesSplitPane).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(RightSnippetsPane, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)));
    RightExtraButtons.setOpaque(true);
    RightExtraButtons.setLayout(new java.awt.FlowLayout());
    // NOI18N
    NodeHeap.setFont(new java.awt.Font("Tahoma", 0, 10));
    NodeHeap.setText("Heap");
    NodeHeap.setToolTipText("Return the remain HEAP size in bytes");
    NodeHeap.setMaximumSize(new java.awt.Dimension(87, 30));
    NodeHeap.setMinimumSize(new java.awt.Dimension(87, 30));
    NodeHeap.setPreferredSize(new java.awt.Dimension(87, 30));
    NodeHeap.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            NodeHeapActionPerformed(evt);
        }
    });
    RightExtraButtons.add(NodeHeap);
    // NOI18N
    NodeInfo.setFont(new java.awt.Font("Tahoma", 0, 10));
    NodeInfo.setText("Chip Info");
    NodeInfo.setToolTipText("Return NodeMCU version, chipid, flashid, flash size, flash mode, flash speed");
    NodeInfo.setMaximumSize(new java.awt.Dimension(87, 30));
    NodeInfo.setMinimumSize(new java.awt.Dimension(87, 30));
    NodeInfo.setPreferredSize(new java.awt.Dimension(87, 30));
    NodeInfo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            NodeInfoActionPerformed(evt);
        }
    });
    RightExtraButtons.add(NodeInfo);
    // NOI18N
    NodeChipID.setFont(new java.awt.Font("Tahoma", 0, 10));
    NodeChipID.setText("Chip ID");
    NodeChipID.setToolTipText("Return chip ID");
    NodeChipID.setMargin(new java.awt.Insets(2, 2, 2, 2));
    NodeChipID.setMaximumSize(new java.awt.Dimension(87, 30));
    NodeChipID.setMinimumSize(new java.awt.Dimension(87, 30));
    NodeChipID.setPreferredSize(new java.awt.Dimension(87, 30));
    NodeChipID.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            NodeChipIDActionPerformed(evt);
        }
    });
    RightExtraButtons.add(NodeChipID);
    // NOI18N
    NodeFlashID.setFont(new java.awt.Font("Tahoma", 0, 10));
    NodeFlashID.setText("Flash ID");
    NodeFlashID.setToolTipText("Return flash ID");
    NodeFlashID.setMargin(new java.awt.Insets(2, 2, 2, 2));
    NodeFlashID.setMaximumSize(new java.awt.Dimension(87, 30));
    NodeFlashID.setMinimumSize(new java.awt.Dimension(87, 30));
    NodeFlashID.setPreferredSize(new java.awt.Dimension(87, 30));
    NodeFlashID.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            NodeFlashIDActionPerformed(evt);
        }
    });
    RightExtraButtons.add(NodeFlashID);
    // NOI18N
    NodeReset.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    NodeReset.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/reset.png")));
    NodeReset.setText("Reset");
    NodeReset.setToolTipText("Soft reset by command node.reset()");
    NodeReset.setMargin(new java.awt.Insets(2, 4, 2, 4));
    NodeReset.setMaximumSize(new java.awt.Dimension(87, 30));
    NodeReset.setMinimumSize(new java.awt.Dimension(87, 30));
    NodeReset.setPreferredSize(new java.awt.Dimension(87, 30));
    NodeReset.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            NodeResetActionPerformed(evt);
        }
    });
    RightExtraButtons.add(NodeReset);
    // NOI18N
    SendCommand.setFont(new java.awt.Font("Tahoma", 0, 10));
    // NOI18N
    SendCommand.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/left.png")));
    SendCommand.setToolTipText("");
    SendCommand.setAlignmentY(0.0F);
    SendCommand.setEnabled(false);
    SendCommand.setLabel("Send");
    SendCommand.setMargin(new java.awt.Insets(0, 0, 0, 0));
    SendCommand.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SendCommandActionPerformed(evt);
        }
    });
    RightBasePane.setLayer(LEDPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RightBasePane.setLayer(RightBottomPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RightBasePane.setLayer(RightBigPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RightBasePane.setLayer(RightExtraButtons, javax.swing.JLayeredPane.DEFAULT_LAYER);
    RightBasePane.setLayer(SendCommand, javax.swing.JLayeredPane.DEFAULT_LAYER);
    javax.swing.GroupLayout RightBasePaneLayout = new javax.swing.GroupLayout(RightBasePane);
    RightBasePane.setLayout(RightBasePaneLayout);
    RightBasePaneLayout.setHorizontalGroup(RightBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RightBasePaneLayout.createSequentialGroup().addGroup(RightBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RightBigPane).addGroup(RightBasePaneLayout.createSequentialGroup().addComponent(RightBottomPane).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(SendCommand, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(RightBasePaneLayout.createSequentialGroup().addGroup(RightBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RightExtraButtons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(LEDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 0, Short.MAX_VALUE))).addContainerGap()));
    RightBasePaneLayout.setVerticalGroup(RightBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(RightBasePaneLayout.createSequentialGroup().addGap(1, 1, 1).addComponent(LEDPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(RightBigPane).addGap(5, 5, 5).addComponent(RightExtraButtons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(RightBasePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(RightBottomPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(SendCommand, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))));
    SendCommand.getAccessibleContext().setAccessibleName("");
    HorizontSplit.setRightComponent(RightBasePane);
    MainMenuBar.setAlignmentX(0.0F);
    // NOI18N
    MainMenuBar.setName("MainMenu");
    MainMenuBar.setPreferredSize(new java.awt.Dimension(300, 22));
    MenuFile.setText("File");
    MenuFile.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuFileActionPerformed(evt);
        }
    });
    MenuItemFileNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemFileNew.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/document.png")));
    MenuItemFileNew.setText("<html><u>N</u>ew");
    MenuItemFileNew.setToolTipText("File New");
    MenuItemFileNew.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileNewActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileNew);
    MenuItemFileOpen.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemFileOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/folder open.png")));
    MenuItemFileOpen.setText("<html><u>O</u>pen from disk");
    MenuItemFileOpen.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileOpenActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileOpen);
    MenuItemFileReload.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemFileReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/refresh.png")));
    MenuItemFileReload.setText("<html><u>R</u>eload from disk");
    MenuItemFileReload.setToolTipText("Reload file from disk, if you use external editor");
    MenuItemFileReload.setEnabled(false);
    MenuItemFileReload.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileReloadActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileReload);
    MenuItemFileSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemFileSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/save.png")));
    MenuItemFileSave.setText("<html><u>S</u>ave to disk");
    MenuItemFileSave.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileSaveActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileSave);
    // NOI18N
    MenuItemFileSaveAs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/save.png")));
    MenuItemFileSaveAs.setText("Save As.. to disk");
    MenuItemFileSaveAs.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileSaveAsActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileSaveAs);
    MenuItemFileSaveAll.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemFileSaveAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/save_all.png")));
    MenuItemFileSaveAll.setText("<html>Save <u>A</u>ll to disk");
    MenuItemFileSaveAll.setEnabled(false);
    MenuFile.add(MenuItemFileSaveAll);
    MenuItemFileClose.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemFileClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/folder closed.png")));
    MenuItemFileClose.setText("Close");
    MenuItemFileClose.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileCloseActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileClose);
    MenuFile.add(jSeparatorFileMenu);
    MenuItemFileSaveESP.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemFileSaveESP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/move.png")));
    MenuItemFileSaveESP.setText("<html><u>S</u>ave to ESP");
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, FileSaveESP, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), MenuItemFileSaveESP, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    MenuItemFileSaveESP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileSaveESPActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileSaveESP);
    jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK));
    jMenuItem4.setText("<html>Save <u>A</u>ll to ESP");
    jMenuItem4.setEnabled(false);
    MenuFile.add(jMenuItem4);
    MenuItemFileSendESP.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemFileSendESP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/script_send.png")));
    MenuItemFileSendESP.setText("<html>S<u>e</u>nd to ESP");
    MenuItemFileSendESP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileSendESPActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileSendESP);
    jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.ALT_MASK));
    jMenuItem7.setText("<html><u>U</u>pload file to ESP");
    jMenuItem7.setEnabled(false);
    MenuFile.add(jMenuItem7);
    MenuFile.add(jSeparator4);
    MenuItemFileDo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemFileDo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/play.png")));
    MenuItemFileDo.setText("<html><u>D</u>oFile on ESP");
    MenuItemFileDo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileDoActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileDo);
    MenuFile.add(jSeparator3);
    MenuItemFileRemoveESP.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemFileRemoveESP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/trash.png")));
    MenuItemFileRemoveESP.setText("<html><u>R</u>emove from ESP");
    MenuItemFileRemoveESP.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileRemoveESPActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileRemoveESP);
    MenuFile.add(jSeparator2);
    MenuItemFileExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
    MenuItemFileExit.setLabel("Exit");
    MenuItemFileExit.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemFileExitActionPerformed(evt);
        }
    });
    MenuFile.add(MenuItemFileExit);
    MainMenuBar.add(MenuFile);
    MenuEdit.setText("Edit");
    MenuItemEditUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditUndo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/undo1.png")));
    MenuItemEditUndo.setText("Undo");
    MenuItemEditUndo.setEnabled(false);
    MenuItemEditUndo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditUndoActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditUndo);
    MenuItemEditRedo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, 0));
    // NOI18N
    MenuItemEditRedo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/redo1.png")));
    MenuItemEditRedo.setText("Redo");
    MenuItemEditRedo.setEnabled(false);
    MenuItemEditRedo.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditRedoActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditRedo);
    MenuEdit.add(jSeparator7);
    MenuItemEditCut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditCut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/cut.png")));
    MenuItemEditCut.setText("Cut");
    MenuItemEditCut.setEnabled(false);
    MenuItemEditCut.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditCutActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditCut);
    MenuItemEditCopy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/copy.png")));
    MenuItemEditCopy.setText("Copy");
    MenuItemEditCopy.setEnabled(false);
    MenuItemEditCopy.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditCopyActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditCopy);
    MenuItemEditPaste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemEditPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/paste.png")));
    MenuItemEditPaste.setText("Paste");
    MenuItemEditPaste.setToolTipText("");
    MenuItemEditPaste.setEnabled(false);
    MenuItemEditPaste.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditPasteActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditPaste);
    MenuEdit.add(jSeparator5);
    MenuItemEditSendSelected.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemEditSendSelected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/send_selected.png")));
    MenuItemEditSendSelected.setText("<html>Send selected <u>B</u>lock to ESP");
    MenuItemEditSendSelected.setToolTipText("Send selected block to ESP");
    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, MenuItemEditorSendSelected, org.jdesktop.beansbinding.ELProperty.create("${enabled}"), MenuItemEditSendSelected, org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);
    MenuItemEditSendSelected.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditSendSelectedActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditSendSelected);
    MenuItemEditSendLine.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemEditSendLine.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/run_line.png")));
    MenuItemEditSendLine.setText("<html>Send current <u>L</u>ine to ESP");
    MenuItemEditSendLine.setToolTipText("Send current line from code editor window to ESP");
    MenuItemEditSendLine.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemEditSendLineActionPerformed(evt);
        }
    });
    MenuEdit.add(MenuItemEditSendLine);
    MainMenuBar.add(MenuEdit);
    MenuESP.setText("ESP");
    MenuESP.setToolTipText("");
    // NOI18N
    MenuItemESPReset.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/reset.png")));
    MenuItemESPReset.setText("Restart ESP module");
    MenuItemESPReset.setToolTipText("Send RESET command (firmware depended)");
    MenuItemESPReset.setEnabled(false);
    MenuItemESPReset.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemESPResetActionPerformed(evt);
        }
    });
    MenuESP.add(MenuItemESPReset);
    // NOI18N
    MenuItemESPFormat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/file manager (delete).png")));
    MenuItemESPFormat.setText("Format ESP");
    MenuItemESPFormat.setToolTipText("Remove All files from ESP flash memory");
    MenuItemESPFormat.setEnabled(false);
    MenuItemESPFormat.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemESPFormatActionPerformed(evt);
        }
    });
    MenuESP.add(MenuItemESPFormat);
    MainMenuBar.add(MenuESP);
    MenuView.setText("View");
    buttonGroupLF.add(MenuView);
    MenuView.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuViewActionPerformed(evt);
        }
    });
    AlwaysOnTop.setText("Always On Top");
    AlwaysOnTop.setToolTipText("");
    // NOI18N
    AlwaysOnTop.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/AlwaysOnTop.png")));
    AlwaysOnTop.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            AlwaysOnTopItemStateChanged(evt);
        }
    });
    AlwaysOnTop.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AlwaysOnTopActionPerformed(evt);
        }
    });
    MenuView.add(AlwaysOnTop);
    MenuItemViewLog.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
    MenuItemViewLog.setSelected(true);
    MenuItemViewLog.setText("<html>Show <u>L</u>og");
    MenuItemViewLog.setToolTipText("Enable/disable log window");
    // NOI18N
    MenuItemViewLog.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/backup.png")));
    MenuItemViewLog.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewLogItemStateChanged(evt);
        }
    });
    MenuItemViewLog.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewLogActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewLog);
    MenuItemViewClearLog.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemViewClearLog.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/backup_delete.png")));
    MenuItemViewClearLog.setText("Clear log");
    MenuItemViewClearLog.setToolTipText("Clear log window");
    MenuItemViewClearLog.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewClearLogActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewClearLog);
    MenuItemViewClearTerminal.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemViewClearTerminal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/terminal_clear.png")));
    MenuItemViewClearTerminal.setText("Clear terminal");
    MenuItemViewClearTerminal.setToolTipText("Clear terminal window");
    MenuItemViewClearTerminal.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewClearTerminalActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewClearTerminal);
    MenuView.add(jSeparator9);
    MenuItemViewTerminalOnly.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, java.awt.event.InputEvent.ALT_MASK));
    MenuItemViewTerminalOnly.setText("Show Terminal only (Left panel show/hide)");
    MenuItemViewTerminalOnly.setToolTipText("Enable/disable left panel");
    MenuItemViewTerminalOnly.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewTerminalOnlyItemStateChanged(evt);
        }
    });
    MenuItemViewTerminalOnly.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewTerminalOnlyActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewTerminalOnly);
    MenuItemViewEditorOnly.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, java.awt.event.InputEvent.ALT_MASK));
    MenuItemViewEditorOnly.setText("Show Editor only (Right panel show/hide)");
    MenuItemViewEditorOnly.setToolTipText("Enable/disable left panel");
    MenuItemViewEditorOnly.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewEditorOnlyItemStateChanged(evt);
        }
    });
    MenuItemViewEditorOnly.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewEditorOnlyActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewEditorOnly);
    MenuView.add(jSeparator18);
    MenuItemViewToolbar.setSelected(true);
    MenuItemViewToolbar.setText("Show toolbar at top left");
    MenuItemViewToolbar.setToolTipText("Enable/disable files toolbar at top left");
    MenuItemViewToolbar.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewToolbarItemStateChanged(evt);
        }
    });
    MenuItemViewToolbar.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewToolbarActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewToolbar);
    MenuItemViewLeftExtra.setText("Show Extra buttons at lleft");
    MenuItemViewLeftExtra.setToolTipText("Enable/disable Extra buttons panel at left");
    MenuItemViewLeftExtra.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewLeftExtraItemStateChanged(evt);
        }
    });
    MenuItemViewLeftExtra.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewLeftExtraActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewLeftExtra);
    MenuItemViewSnippets.setSelected(true);
    MenuItemViewSnippets.setText("Show Snippets panel at right");
    MenuItemViewSnippets.setToolTipText("Enable/disable Snippets panel");
    MenuItemViewSnippets.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewSnippetsItemStateChanged(evt);
        }
    });
    MenuItemViewSnippets.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewSnippetsActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewSnippets);
    MenuItemViewFileManager.setSelected(true);
    MenuItemViewFileManager.setText("Show FileManager panel at right");
    MenuItemViewFileManager.setToolTipText("Enable/disable FileManager panel at right");
    MenuItemViewFileManager.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewFileManagerItemStateChanged(evt);
        }
    });
    MenuItemViewFileManager.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewFileManagerActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewFileManager);
    MenuItemViewRightExtra.setSelected(true);
    MenuItemViewRightExtra.setText("Show Extra buttons at bottom right");
    MenuItemViewRightExtra.setToolTipText("Enable/disable Extra buttons panel at bottom right");
    MenuItemViewRightExtra.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewRightExtraItemStateChanged(evt);
        }
    });
    MenuItemViewRightExtra.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewRightExtraActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewRightExtra);
    MenuItemViewDonate.setSelected(true);
    MenuItemViewDonate.setText("<html>I'm already make donation, <br />please hide dontation button at bottom right!");
    MenuItemViewDonate.setToolTipText("Enable/disable Extra buttons panel at bottom right");
    MenuItemViewDonate.addItemListener(new java.awt.event.ItemListener() {

        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            MenuItemViewDonateItemStateChanged(evt);
        }
    });
    MenuItemViewDonate.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewDonateActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewDonate);
    MenuView.add(jSeparator13);
    MenuItemViewTermFontInc.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemViewTermFontInc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom in.png")));
    MenuItemViewTermFontInc.setText("Terminal font size inc");
    MenuItemViewTermFontInc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewTermFontIncActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewTermFontInc);
    MenuItemViewTermFontDec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemViewTermFontDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom out.png")));
    MenuItemViewTermFontDec.setText("Terminal font size dec");
    MenuItemViewTermFontDec.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewTermFontDecActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewTermFontDec);
    MenuView.add(jSeparator10);
    MenuItemViewEditorFontInc.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemViewEditorFontInc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom in.png")));
    MenuItemViewEditorFontInc.setText("Editor font size inc");
    MenuItemViewEditorFontInc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewEditorFontIncActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewEditorFontInc);
    MenuItemViewEditorFontDec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.ALT_MASK));
    // NOI18N
    MenuItemViewEditorFontDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom out.png")));
    MenuItemViewEditorFontDec.setText("Editor font size dec");
    MenuItemViewEditorFontDec.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewEditorFontDecActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewEditorFontDec);
    MenuView.add(jSeparator11);
    MenuItemViewLogFontInc.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ADD, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemViewLogFontInc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom in.png")));
    MenuItemViewLogFontInc.setText("Log font size inc");
    MenuItemViewLogFontInc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewLogFontIncActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewLogFontInc);
    MenuItemViewLogFontDec.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SUBTRACT, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    // NOI18N
    MenuItemViewLogFontDec.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/zoom out.png")));
    MenuItemViewLogFontDec.setText("Log font size dec");
    MenuItemViewLogFontDec.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewLogFontDecActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewLogFontDec);
    MenuView.add(jSeparator12);
    MenuItemViewFontDefault.setText("Reset all font size to default");
    MenuItemViewFontDefault.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewFontDefaultActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewFontDefault);
    MenuView.add(jSeparator17);
    buttonGroupLF.add(MenuItemViewLF1);
    MenuItemViewLF1.setText("Nimbus");
    MenuItemViewLF1.setToolTipText("");
    MenuItemViewLF1.setActionCommand("0");
    MenuItemViewLF1.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemViewLF1ActionPerformed(evt);
        }
    });
    MenuView.add(MenuItemViewLF1);
    MainMenuBar.add(MenuView);
    MenuLinks.setText("Links");
    MenuLinks.setToolTipText("");
    MenuLinks.setMaximumSize(new java.awt.Dimension(31, 100));
    // NOI18N
    MenuItemLinksMicroPythonDoc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/micropython.png")));
    MenuItemLinksMicroPythonDoc.setText("MicroPython Documentation English");
    MenuItemLinksMicroPythonDoc.setToolTipText("Open doc NodeMCU API Chinese in browser");
    MenuItemLinksMicroPythonDoc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksMicroPythonDocActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksMicroPythonDoc);
    // NOI18N
    MenuItemLinksNodeMCUdoc.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/nodemcu.png")));
    MenuItemLinksNodeMCUdoc.setText("NodeMCU Documentation English");
    MenuItemLinksNodeMCUdoc.setToolTipText("Open doc NodeMCU API English in browser");
    MenuItemLinksNodeMCUdoc.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksNodeMCUdocActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksNodeMCUdoc);
    MenuLinks.add(jSeparator15);
    // NOI18N
    MenuItemLinksBuyDevBoard.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/aliexpress.png")));
    MenuItemLinksBuyDevBoard.setText("Buy NodeMCU v3 (LoLin brand, USB)");
    MenuItemLinksBuyDevBoard.setToolTipText("Buy NodeMCU development boards on Aliexpress");
    MenuItemLinksBuyDevBoard.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksBuyDevBoardActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksBuyDevBoard);
    // NOI18N
    MenuItemLinksBuyESP8266.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/aliexpress.png")));
    MenuItemLinksBuyESP8266.setText("Buy Witty (RGB LED, 3 buttons, USB)");
    MenuItemLinksBuyESP8266.setToolTipText("Buy ESP8266 ESP-01 ESP-02 ... ESP-12 modules on Aliexpress");
    MenuItemLinksBuyESP8266.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksBuyESP8266ActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksBuyESP8266);
    // NOI18N
    MenuItemLinksBuyESD12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/aliexpress.png")));
    MenuItemLinksBuyESD12.setText("Buy WeMos mini (many shields, USB)");
    MenuItemLinksBuyESD12.setToolTipText("Buy ESP8266 ESD-12 4M flash board");
    MenuItemLinksBuyESD12.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksBuyESD12ActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksBuyESD12);
    // NOI18N
    MenuItemLinksBuyOther.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/aliexpress.png")));
    MenuItemLinksBuyOther.setText("Buy most popular DIY parts");
    MenuItemLinksBuyOther.setToolTipText("Buy any electronics and other on Aliexpress");
    MenuItemLinksBuyOther.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksBuyOtherActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksBuyOther);
    MenuLinks.add(jSeparator16);
    // NOI18N
    MenuItemLinksIoTmanager.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/IoTmanager.png")));
    MenuItemLinksIoTmanager.setText("<html>IoT Manager - free Android app <br />for any DIY devices. Ads free.<br />From 4refr0nt, ESPlorer developer");
    MenuItemLinksIoTmanager.setToolTipText("You can make donation for ESPlorer developer");
    MenuItemLinksIoTmanager.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksIoTmanagerActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksIoTmanager);
    MenuLinks.add(jSeparator19);
    MenuItemLinksESPlorerForumEn.setText("ESPlorer discuss, bugs report - esp8266.com English");
    MenuItemLinksESPlorerForumEn.setToolTipText("Link to ESP8266.COM forum, ESPlorer topic, English");
    MenuItemLinksESPlorerForumEn.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksESPlorerForumEnActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksESPlorerForumEn);
    MenuItemLinksESPlorerForumRu.setText("ESPlorer discuss, bugs report Russian");
    MenuItemLinksESPlorerForumRu.setToolTipText("Link to ESP8266.RU forum, ESPlorer topic, Russian");
    MenuItemLinksESPlorerForumRu.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksESPlorerForumRuActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksESPlorerForumRu);
    MenuItemLinksESPlorerLatest.setText("ESPlorer download latest stable");
    MenuItemLinksESPlorerLatest.setToolTipText("Link to ESP8266.RU, download ESPlorer latest");
    MenuItemLinksESPlorerLatest.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksESPlorerLatestActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksESPlorerLatest);
    MenuItemLinksESPlorerSource.setText("ESPlorer download source code from github");
    MenuItemLinksESPlorerSource.setToolTipText("Link to GITHUB for download ESPlorer source code");
    MenuItemLinksESPlorerSource.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksESPlorerSourceActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksESPlorerSource);
    MenuItemLinksESPlorerHome.setText("ESPlorer home page on esp8266.ru");
    MenuItemLinksESPlorerHome.setToolTipText("Link to ESP8266.RU, ESPlorer HomePage");
    MenuItemLinksESPlorerHome.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksESPlorerHomeActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksESPlorerHome);
    MenuLinks.add(jSeparator20);
    // NOI18N
    MenuItemLinksDonate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/paypal.png")));
    MenuItemLinksDonate.setText("Make donation for ESPlorer developer");
    MenuItemLinksDonate.setToolTipText("You can make donation for ESPlorer developer");
    MenuItemLinksDonate.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemLinksDonateActionPerformed(evt);
        }
    });
    MenuLinks.add(MenuItemLinksDonate);
    MainMenuBar.add(MenuLinks);
    MenuHelp.setText("?");
    MenuItemHelpAbout.setText("About");
    MenuItemHelpAbout.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MenuItemHelpAboutActionPerformed(evt);
        }
    });
    MenuHelp.add(MenuItemHelpAbout);
    MainMenuBar.add(MenuHelp);
    setJMenuBar(MainMenuBar);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(HorizontSplit, javax.swing.GroupLayout.DEFAULT_SIZE, 1024, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(HorizontSplit, javax.swing.GroupLayout.DEFAULT_SIZE, 746, Short.MAX_VALUE));
    getAccessibleContext().setAccessibleDescription("");
    bindingGroup.bind();
    pack();
}