Example usage for javax.swing GroupLayout setVerticalGroup

List of usage examples for javax.swing GroupLayout setVerticalGroup

Introduction

In this page you can find the example usage for javax.swing GroupLayout setVerticalGroup.

Prototype

public void setVerticalGroup(Group group) 

Source Link

Document

Sets the Group that positions and sizes components along the vertical axis.

Usage

From source file:io.github.jeddict.jpa.modeler.properties.named.nativequery.NamedNativeQueryPanel.java

/**
 * 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./* ww w.ja v  a 2 s  .  com*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    root_jLayeredPane = new javax.swing.JLayeredPane();
    dbCon_LayeredPane = new javax.swing.JLayeredPane();
    dbCon_Label = new javax.swing.JLabel();
    dbCon_jComboBox = new javax.swing.JComboBox();
    name_LayeredPane = new javax.swing.JLayeredPane();
    name_Label = new javax.swing.JLabel();
    name_TextField = new javax.swing.JTextField();
    query_LayeredPane = new javax.swing.JLayeredPane();
    query_Label = new javax.swing.JLabel();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    query_ScrollPane = new javax.swing.JScrollPane();
    query_EditorPane = new javax.swing.JEditorPane();
    jLayeredPane2 = new javax.swing.JLayeredPane();
    descriptionButton = new javax.swing.JButton();
    action_jLayeredPane = new javax.swing.JLayeredPane();
    save_Button = new javax.swing.JButton();
    cancel_Button = new javax.swing.JButton();
    queryHint_LayeredPane = new javax.swing.JLayeredPane();
    customNAttributeClientEditor = new org.netbeans.modeler.properties.nentity.NEntityEditor();
    resultClass_LayeredPane = new javax.swing.JLayeredPane();
    resultClass_Label = new javax.swing.JLabel();
    resultClass_jComboBox = new javax.swing.JComboBox();
    dataType_Action = new javax.swing.JButton();
    resultSetMapping_LayeredPane = new javax.swing.JLayeredPane();
    resultSetMapping_Label = new javax.swing.JLabel();
    resultSetMapping_jComboBox = new javax.swing.JComboBox();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    getContentPane().setLayout(new java.awt.GridLayout(1, 0));

    dbCon_LayeredPane.setEnabled(false);
    dbCon_LayeredPane.setPreferredSize(new java.awt.Dimension(170, 27));
    dbCon_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(dbCon_Label, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.dbCon_Label.text")); // NOI18N
    dbCon_LayeredPane.add(dbCon_Label, java.awt.BorderLayout.WEST);

    dbCon_jComboBox.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            dbCon_jComboBoxItemStateChanged(evt);
        }
    });
    dbCon_LayeredPane.add(dbCon_jComboBox, java.awt.BorderLayout.CENTER);

    name_LayeredPane.setPreferredSize(new java.awt.Dimension(170, 27));
    name_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(name_Label, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.name_Label.text")); // NOI18N
    name_LayeredPane.add(name_Label, java.awt.BorderLayout.WEST);

    name_TextField.setToolTipText(org.openide.util.NbBundle.getMessage(NamedNativeQueryPanel.class,
            "NamedNativeQueryPanel.name_TextField.toolTipText")); // NOI18N
    name_TextField.setPreferredSize(new java.awt.Dimension(40, 27));
    name_LayeredPane.add(name_TextField, java.awt.BorderLayout.CENTER);

    query_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(query_Label, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.query_Label.text")); // NOI18N
    query_LayeredPane.add(query_Label, java.awt.BorderLayout.WEST);

    jLayeredPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    jLayeredPane1.setLayout(new java.awt.BorderLayout());

    query_ScrollPane.setPreferredSize(new java.awt.Dimension(400, 100));

    query_EditorPane.setPreferredSize(new java.awt.Dimension(206, 23));
    query_ScrollPane.setViewportView(query_EditorPane);
    //jEditorPane1.getDocument().removeDocumentListener(NamedStoredProcedureQueryPanel.this);
    query_EditorPane.setEditorKit(CloneableEditorSupport.getEditorKit("text/x-sql"));
    //jEditorPane1.getDocument().addDocumentListener(NamedStoredProcedureQueryPanel.this);

    jLayeredPane1.add(query_ScrollPane, java.awt.BorderLayout.CENTER);

    jLayeredPane2.setMinimumSize(new java.awt.Dimension(15, 100));
    jLayeredPane2.setPreferredSize(new java.awt.Dimension(30, 100));

    descriptionButton.setBackground(new java.awt.Color(204, 204, 204));
    descriptionButton.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/io/github/jeddict/jpa/modeler/resource/image/misc/note.png"))); // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(descriptionButton, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.descriptionButton.text")); // NOI18N
    descriptionButton.setToolTipText(org.openide.util.NbBundle.getMessage(NamedNativeQueryPanel.class,
            "NamedNativeQueryPanel.descriptionButton.toolTipText")); // NOI18N
    descriptionButton.setBorder(null);
    descriptionButton.setBorderPainted(false);
    descriptionButton.setMinimumSize(new java.awt.Dimension(10, 25));
    descriptionButton.setPreferredSize(new java.awt.Dimension(10, 15));
    descriptionButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            descriptionButtonActionPerformed(evt);
        }
    });
    jLayeredPane2.add(descriptionButton);
    descriptionButton.setBounds(10, 0, 20, 20);

    jLayeredPane1.add(jLayeredPane2, java.awt.BorderLayout.EAST);

    query_LayeredPane.add(jLayeredPane1, java.awt.BorderLayout.CENTER);

    action_jLayeredPane.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

    org.openide.awt.Mnemonics.setLocalizedText(save_Button, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.save_Button.text")); // NOI18N
    save_Button.setPreferredSize(new java.awt.Dimension(60, 26));
    save_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            save_ButtonActionPerformed(evt);
        }
    });
    action_jLayeredPane.add(save_Button);

    org.openide.awt.Mnemonics.setLocalizedText(cancel_Button, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.cancel_Button.text")); // NOI18N
    cancel_Button.setPreferredSize(new java.awt.Dimension(70, 26));
    cancel_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancel_ButtonActionPerformed(evt);
        }
    });
    action_jLayeredPane.add(cancel_Button);

    queryHint_LayeredPane.setBorder(
            javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(),
                    org.openide.util.NbBundle.getMessage(NamedNativeQueryPanel.class,
                            "NamedNativeQueryPanel.queryHint_LayeredPane.border.title"),
                    javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
                    javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12),
                    new java.awt.Color(102, 102, 102))); // NOI18N
    queryHint_LayeredPane.setPreferredSize(new java.awt.Dimension(460, 30));

    queryHint_LayeredPane.setLayer(customNAttributeClientEditor, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout queryHint_LayeredPaneLayout = new javax.swing.GroupLayout(queryHint_LayeredPane);
    queryHint_LayeredPane.setLayout(queryHint_LayeredPaneLayout);
    queryHint_LayeredPaneLayout.setHorizontalGroup(
            queryHint_LayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(customNAttributeClientEditor, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE));
    queryHint_LayeredPaneLayout.setVerticalGroup(queryHint_LayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
                    customNAttributeClientEditor, javax.swing.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE));

    resultClass_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(resultClass_Label, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.resultClass_Label.text")); // NOI18N
    resultClass_LayeredPane.add(resultClass_Label, java.awt.BorderLayout.WEST);

    resultClass_LayeredPane.add(resultClass_jComboBox, java.awt.BorderLayout.CENTER);

    dataType_Action.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/io/github/jeddict/jpa/modeler/properties/resource/searchbutton.png"))); // NOI18N
    dataType_Action.setPreferredSize(new java.awt.Dimension(27, 25));
    dataType_Action.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dataType_ActionActionPerformed(evt);
        }
    });
    resultClass_LayeredPane.add(dataType_Action, java.awt.BorderLayout.EAST);

    resultSetMapping_LayeredPane.setPreferredSize(new java.awt.Dimension(170, 27));
    resultSetMapping_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(resultSetMapping_Label, org.openide.util.NbBundle
            .getMessage(NamedNativeQueryPanel.class, "NamedNativeQueryPanel.resultSetMapping_Label.text")); // NOI18N
    resultSetMapping_LayeredPane.add(resultSetMapping_Label, java.awt.BorderLayout.WEST);

    resultSetMapping_LayeredPane.add(resultSetMapping_jComboBox, java.awt.BorderLayout.CENTER);

    root_jLayeredPane.setLayer(dbCon_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(name_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(query_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(action_jLayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(queryHint_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(resultClass_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(resultSetMapping_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout root_jLayeredPaneLayout = new javax.swing.GroupLayout(root_jLayeredPane);
    root_jLayeredPane.setLayout(root_jLayeredPaneLayout);
    root_jLayeredPaneLayout.setHorizontalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addGroup(root_jLayeredPaneLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            root_jLayeredPaneLayout.createSequentialGroup().addContainerGap()
                                    .addComponent(action_jLayeredPane))
                    .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addGap(12, 12, 12).addComponent(
                            dbCon_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addContainerGap()
                            .addGroup(root_jLayeredPaneLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(query_LayeredPane, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 692, Short.MAX_VALUE)
                                    .addComponent(name_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addGap(12, 12, 12)
                            .addGroup(root_jLayeredPaneLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(queryHint_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            690, Short.MAX_VALUE)
                                    .addComponent(resultSetMapping_LayeredPane,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(resultClass_LayeredPane,
                                            javax.swing.GroupLayout.Alignment.TRAILING))))
                    .addContainerGap()));
    root_jLayeredPaneLayout.setVerticalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addContainerGap()
                    .addComponent(dbCon_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(name_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(10, 10, 10)
                    .addComponent(query_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(resultClass_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(resultSetMapping_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(queryHint_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE, 150,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(7, 7, 7).addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    getContentPane().add(root_jLayeredPane);

    pack();
}

From source file:com.cactus.ClientChatGUI.java

/**
 * 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./*from   w  w w. ja  va 2s .  c o m*/
 */

// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    Message_Area = new JTextField();
    Send_Button = new JButton();
    Back_Button = new JButton();
    jScrollPane1 = new JScrollPane();
    Chat_Area = new JTextArea();

    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

    Send_Button.setText("Send");
    Send_Button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            try {
                Send_ButtonActionPerformed(evt);
            } catch (ClientProtocolException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (UnsupportedEncodingException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    });

    Chat_Area.setColumns(20);
    Chat_Area.setRows(5);
    Chat_Area.setEditable(false);
    jScrollPane1.setViewportView(Chat_Area);

    try {
        updateChatBox();
    } catch (ClientProtocolException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (JSONException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    Back_Button.setText("Back");
    Back_Button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            Back_ButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new GroupLayout(getContentPane());
    layout.setHorizontalGroup(layout.createParallelGroup(Alignment.TRAILING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addGroup(layout.createParallelGroup(Alignment.TRAILING)
                    .addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(
                                    Message_Area, GroupLayout.PREFERRED_SIZE, 337, GroupLayout.PREFERRED_SIZE)
                            .addGap(18)
                            .addGroup(layout.createParallelGroup(Alignment.TRAILING, false)
                                    .addComponent(Back_Button, 0, 0, Short.MAX_VALUE).addComponent(Send_Button,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                            Short.MAX_VALUE))))
            .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(Alignment.TRAILING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE).addGap(18)
            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addComponent(Send_Button)
                            .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(Back_Button))
                    .addComponent(Message_Area, GroupLayout.PREFERRED_SIZE, 68, GroupLayout.PREFERRED_SIZE))
            .addContainerGap()));
    getContentPane().setLayout(layout);

    pack();
}

From source file:com.mirth.connect.client.ui.FunctionList.java

/** This method is called from within the constructor to
 * initialize the form./*w w w  .  j  a va 2  s .  co m*/
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    variableReferenceDropDown = new javax.swing.JComboBox();
    categoryLabel = new javax.swing.JLabel();
    variableScrollPane = new javax.swing.JScrollPane();
    filterLabel = new javax.swing.JLabel();
    filterField = new javax.swing.JTextField();

    setBackground(new java.awt.Color(255, 255, 255));
    setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));

    variableReferenceDropDown.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            variableReferenceDropDownActionPerformed(evt);
        }
    });

    categoryLabel.setText("Category:");

    filterLabel.setText("Filter:");

    filterField.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            filterFieldKeyPressed(evt);
        }

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

        public void keyTyped(java.awt.event.KeyEvent evt) {
            filterFieldKeyTyped(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().addGap(10, 10, 10)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(filterLabel, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(categoryLabel, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(variableReferenceDropDown, 0, 70, Short.MAX_VALUE).addComponent(
                                    filterField, javax.swing.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE))
                    .addContainerGap())
            .addComponent(variableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(categoryLabel).addComponent(variableReferenceDropDown,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 22,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(4, 4, 4)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(filterLabel).addComponent(filterField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(
                            variableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)));
}

From source file:de.tor.tribes.ui.algo.SettingsPanel.java

/**
 * 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.
 *//* ww  w  .j a v a 2 s  .  c o m*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel3 = new javax.swing.JPanel();
    jLabel6 = new javax.swing.JLabel();
    jAlgoBox = new javax.swing.JComboBox();
    jFakeOffTargetsBox = new javax.swing.JCheckBox();
    jPanel1 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    timeFrameVisualizer1 = new de.tor.tribes.ui.algo.TimeFrameVisualizer();
    jPanel2 = new javax.swing.JPanel();

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Sonstige Einstellungen"));
    jPanel3.setOpaque(false);

    jLabel6.setText("Zielsuche");

    jAlgoBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Zufllig", "Systematisch" }));
    jAlgoBox.setToolTipText("Komplexitt der Berechnung");
    jAlgoBox.setMaximumSize(new java.awt.Dimension(100, 20));
    jAlgoBox.setMinimumSize(new java.awt.Dimension(100, 20));
    jAlgoBox.setPreferredSize(new java.awt.Dimension(100, 20));

    jFakeOffTargetsBox.setText("Off-Ziele faken");
    jFakeOffTargetsBox.setToolTipText("Ziele die nicht als Fake-Ziel markiert sind fr Fakes sperren");
    jFakeOffTargetsBox.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jFakeOffTargetsBox.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
    jFakeOffTargetsBox.setIconTextGap(60);
    jFakeOffTargetsBox.setMargin(new java.awt.Insets(2, 0, 2, 2));

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7,
                                            Short.MAX_VALUE)
                                    .addComponent(jAlgoBox, javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jFakeOffTargetsBox))
                    .addContainerGap()));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(jAlgoBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(jFakeOffTargetsBox)
                    .addContainerGap(194, Short.MAX_VALUE)));

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Zeitrahmendarstellung"));

    jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/refresh.png"))); // NOI18N
    jButton1.setToolTipText("Zeitrahmendarstellung aktualisieren");
    jButton1.setMaximumSize(new java.awt.Dimension(25, 25));
    jButton1.setMinimumSize(new java.awt.Dimension(25, 25));
    jButton1.setPreferredSize(new java.awt.Dimension(25, 25));
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            fireRefreshTimeFrameVisualizerEvent(evt);
        }
    });

    javax.swing.GroupLayout timeFrameVisualizer1Layout = new javax.swing.GroupLayout(timeFrameVisualizer1);
    timeFrameVisualizer1.setLayout(timeFrameVisualizer1Layout);
    timeFrameVisualizer1Layout.setHorizontalGroup(timeFrameVisualizer1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 643, Short.MAX_VALUE));
    timeFrameVisualizer1Layout.setVerticalGroup(timeFrameVisualizer1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 98, Short.MAX_VALUE));

    jScrollPane1.setViewportView(timeFrameVisualizer1);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 645, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(11, 11, 11).addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                    .addContainerGap()));

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Zeiteinstellungen"));
    jPanel2.setLayout(new java.awt.BorderLayout());

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
}

From source file:liveDriftCorrectionGUI.java

/**
 * 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.// w  w  w.  java2  s  .c  o  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jTabbedPane6 = new javax.swing.JTabbedPane();
    jButton2 = new javax.swing.JButton();
    xStageInc1 = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    PixelSizeEdit = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    MaxMoveToler = new javax.swing.JTextField();
    reverseX = new javax.swing.JRadioButton();
    reverseY = new javax.swing.JRadioButton();
    reverseZ = new javax.swing.JRadioButton();
    jLabel6 = new javax.swing.JLabel();
    Damping = new javax.swing.JTextField();
    swapXY = new javax.swing.JRadioButton();
    jPanel3 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    yStageInc = new javax.swing.JButton();
    yStageDec = new javax.swing.JButton();
    xStageInc = new javax.swing.JButton();
    xStageDec = new javax.swing.JButton();
    zStageInc = new javax.swing.JButton();
    zStageDec = new javax.swing.JButton();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    stageStepSize = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jPanel4 = new javax.swing.JPanel();
    AddRoiButton = new javax.swing.JButton();
    getPositionOneFrame = new javax.swing.JButton();
    LockButton = new javax.swing.JToggleButton();
    offLineButton = new javax.swing.JButton();
    jLabel5 = new javax.swing.JLabel();

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 100, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE));

    jButton2.setText("jButton2");

    xStageInc1.setFont(new java.awt.Font("", 0, 20)); // NOI18N
    xStageInc1.setText("");
    xStageInc1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            xStageInc1ActionPerformed(evt);
        }
    });

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setBackground(new java.awt.Color(0, 51, 51));

    jPanel2.setBackground(new java.awt.Color(51, 255, 204));

    jLabel1.setText("Pixel Size (um): ");

    PixelSizeEdit.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    PixelSizeEdit.setText("0.16");
    PixelSizeEdit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PixelSizeEditActionPerformed(evt);
        }
    });

    jLabel2.setText("Max_Move Toler.(um):");

    MaxMoveToler.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    MaxMoveToler.setText("0.3");
    MaxMoveToler.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            MaxMoveTolerActionPerformed(evt);
        }
    });

    reverseX.setText("reverseX");

    reverseY.setText("reverseY");

    reverseZ.setText("reverseZ");

    jLabel6.setText("Damping Coefficient:");

    Damping.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    Damping.setText("10");
    Damping.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            DampingActionPerformed(evt);
        }
    });

    swapXY.setSelected(true);
    swapXY.setText("swapXY");
    swapXY.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            swapXYActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout
            .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(PixelSizeEdit, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    42, Short.MAX_VALUE)
                                            .addComponent(MaxMoveToler)))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(Damping)))
                            .addGap(18, 18, 18)
                            .addGroup(
                                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(reverseX, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(swapXY, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(10, 10, 10)
                            .addComponent(reverseY, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(10, 10, 10).addComponent(reverseZ, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(33, 33, 33)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1)
                    .addComponent(PixelSizeEdit, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(reverseX).addComponent(reverseY).addComponent(reverseZ))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(MaxMoveToler, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(swapXY))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(Damping, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(29, Short.MAX_VALUE)));

    jPanel3.setBackground(new java.awt.Color(153, 153, 255));

    jLabel7.setText("X-Y");

    yStageInc.setText("");
    yStageInc.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            yStageIncActionPerformed(evt);
        }
    });

    yStageDec.setText("");
    yStageDec.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            yStageDecActionPerformed(evt);
        }
    });

    xStageInc.setFont(new java.awt.Font("", 0, 20)); // NOI18N
    xStageInc.setText("");
    xStageInc.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            xStageIncActionPerformed(evt);
        }
    });

    xStageDec.setText("?");
    xStageDec.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            xStageDecActionPerformed(evt);
        }
    });

    zStageInc.setText("");
    zStageInc.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            zStageIncActionPerformed(evt);
        }
    });

    zStageDec.setText("");
    zStageDec.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            zStageDecActionPerformed(evt);
        }
    });

    jLabel8.setText("Z");

    jLabel9.setText("StepSize(um)");

    stageStepSize.setText("0.1");
    stageStepSize.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            stageStepSizeActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jLabel7).addGap(33, 33, 33)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(yStageInc, javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(yStageDec, javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(78, 78, 78).addComponent(jLabel8).addGap(18, 18, 18)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(zStageDec)
                            .addGroup(jPanel3Layout.createSequentialGroup().addComponent(zStageInc)
                                    .addGap(30, 30, 30).addComponent(jLabel9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(stageStepSize, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(0, 52, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addComponent(xStageDec)
                    .addGap(49, 49, 49).addComponent(xStageInc)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap()
                                    .addComponent(yStageInc))
                            .addComponent(jLabel8))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(xStageDec).addComponent(xStageInc,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 24,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(yStageDec).addComponent(zStageDec))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(zStageInc)
                    .addComponent(jLabel9).addComponent(stageStepSize, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(0, 0, Short.MAX_VALUE)));

    jLabel3.setText("TEST STAGE");

    jLabel4.setText("SET PARAMETERS");

    jPanel4.setBackground(new java.awt.Color(153, 153, 0));

    AddRoiButton.setText("Add Roi");
    AddRoiButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AddRoiButtonActionPerformed(evt);
        }
    });

    getPositionOneFrame.setText("Get Position");
    getPositionOneFrame.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            getPositionOneFrameActionPerformed(evt);
        }
    });

    LockButton.setText("LockOff");
    LockButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            LockButtonActionPerformed(evt);
        }
    });

    offLineButton.setText("Off Line");
    offLineButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            offLineButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout
            .setHorizontalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup().addComponent(AddRoiButton)
                            .addGap(10, 10, 10).addComponent(getPositionOneFrame)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(LockButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(offLineButton).addGap(0, 0, Short.MAX_VALUE)));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(AddRoiButton).addComponent(getPositionOneFrame)
                            .addComponent(LockButton).addComponent(offLineButton))
                    .addContainerGap(38, Short.MAX_VALUE)));

    jLabel5.setText("Drift Correction");

    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.LEADING)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(10, 10, 10))
            .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                    layout.createSequentialGroup().addGap(204, 204, 204).addComponent(jLabel5))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    layout.createSequentialGroup().addContainerGap().addComponent(jLabel4)
                                            .addGap(7, 7, 7)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel3).addGap(214, 214, 214)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(14, 14, 14).addComponent(jLabel5)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel4)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel3)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:chat.com.server.ChatServer.java

/**
 * 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./*from w  ww  . j a  va  2 s  . com*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">                          
private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreaChat = new javax.swing.JTextArea();
    jButtonStart = new javax.swing.JButton();
    jButtonEnd = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setResizable(false);

    jTextAreaChat.setColumns(20);
    jTextAreaChat.setFont(new java.awt.Font("Consolas", 0, 13)); // NOI18N
    jTextAreaChat.setRows(5);
    jScrollPane1.setViewportView(jTextAreaChat);

    jButtonStart.setText("Start");
    jButtonStart.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonStartActionPerformed(evt);
        }
    });

    jButtonEnd.setText("End");
    jButtonEnd.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonEndActionPerformed(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.LEADING)
                            .addComponent(jScrollPane1)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jButtonStart, javax.swing.GroupLayout.PREFERRED_SIZE, 81,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 320,
                                            Short.MAX_VALUE)
                                    .addComponent(jButtonEnd, javax.swing.GroupLayout.PREFERRED_SIZE, 81,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 240,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonStart, javax.swing.GroupLayout.DEFAULT_SIZE, 33,
                                    Short.MAX_VALUE)
                            .addComponent(jButtonEnd, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(24, 24, 24)));

    pack();
}

From source file:edu.esprit.charts.JfreeChart.java

/**
 * 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.//  w  ww  .j av a2 s.  c om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    Client = new javax.swing.JLabel();
    t2 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
        }
    });

    jPanel1.setBackground(new java.awt.Color(204, 204, 255));
    jPanel1.setLayout(new java.awt.BorderLayout());

    Client.setText("Responsable");

    t2.setText("Client");

    jButton1.setText("CHarger");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(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().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(63, 63, 63).addComponent(Client)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGap(141, 141, 141)
                                            .addComponent(jButton1))
                                    .addGroup(layout.createSequentialGroup().addGap(58, 58, 58)
                                            .addComponent(t2))))
                    .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jPanel1,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 340,
                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(283, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 191,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Client).addComponent(t2, javax.swing.GroupLayout.PREFERRED_SIZE, 14,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton1)
                    .addContainerGap(270, Short.MAX_VALUE)));

    pack();
}

From source file:de.tor.tribes.ui.components.DatePicker.java

/**
 * 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.// w ww .ja  v  a  2 s.c  o m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanelMonthSelection = new javax.swing.JPanel();
    jButtonPrevious = new BasicArrowButton(BasicArrowButton.WEST);
    jLabelMonth = new javax.swing.JLabel();
    jButtonNext = new BasicArrowButton(BasicArrowButton.EAST);
    jPanelDaySelection = new javax.swing.JPanel();
    jPanelBottom = new javax.swing.JPanel();
    jButtonToday = new javax.swing.JButton();
    jButtonOK = new javax.swing.JButton();

    setMinimumSize(new java.awt.Dimension(170, 240));
    setPreferredSize(new java.awt.Dimension(170, 240));
    setVerifyInputWhenFocusTarget(false);
    setLayout(new java.awt.BorderLayout());

    jPanelMonthSelection.setMinimumSize(new java.awt.Dimension(170, 30));
    jPanelMonthSelection.setPreferredSize(new java.awt.Dimension(170, 30));

    jButtonPrevious.setToolTipText("");
    jButtonPrevious.setMaximumSize(new java.awt.Dimension(20, 20));
    jButtonPrevious.setMinimumSize(new java.awt.Dimension(20, 20));
    jButtonPrevious.setPreferredSize(new java.awt.Dimension(20, 20));
    jButtonPrevious.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            firePrevNextAction(evt);
        }
    });

    jLabelMonth.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabelMonth.setText("Juli 2018");

    jButtonNext.setToolTipText("");
    jButtonNext.setMaximumSize(new java.awt.Dimension(20, 20));
    jButtonNext.setMinimumSize(new java.awt.Dimension(20, 20));
    jButtonNext.setPreferredSize(new java.awt.Dimension(20, 20));
    jButtonNext.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            firePrevNextAction(evt);
        }
    });

    javax.swing.GroupLayout jPanelMonthSelectionLayout = new javax.swing.GroupLayout(jPanelMonthSelection);
    jPanelMonthSelection.setLayout(jPanelMonthSelectionLayout);
    jPanelMonthSelectionLayout.setHorizontalGroup(jPanelMonthSelectionLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMonthSelectionLayout.createSequentialGroup().addContainerGap(49, Short.MAX_VALUE)
                    .addComponent(jButtonPrevious, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(5, 5, 5).addComponent(jLabelMonth).addGap(4, 4, 4)
                    .addComponent(jButtonNext, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(50, Short.MAX_VALUE)));
    jPanelMonthSelectionLayout.setVerticalGroup(jPanelMonthSelectionLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMonthSelectionLayout.createSequentialGroup().addGroup(jPanelMonthSelectionLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButtonNext, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelMonth).addComponent(jButtonPrevious,
                            javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(10, Short.MAX_VALUE)));

    add(jPanelMonthSelection, java.awt.BorderLayout.PAGE_START);
    jPanelMonthSelection.getAccessibleContext().setAccessibleName("");

    jPanelDaySelection.setMinimumSize(new java.awt.Dimension(170, 160));
    jPanelDaySelection.setPreferredSize(new java.awt.Dimension(170, 160));
    jPanelDaySelection.setRequestFocusEnabled(false);
    jPanelDaySelection.setLayout(new java.awt.GridBagLayout());
    add(jPanelDaySelection, java.awt.BorderLayout.CENTER);

    jPanelBottom.setMinimumSize(new java.awt.Dimension(170, 50));
    jPanelBottom.setPreferredSize(new java.awt.Dimension(170, 50));

    jButtonToday.setText("Heute");
    jButtonToday.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            fireTodayAction(evt);
        }
    });

    jButtonOK.setText("OK");
    jButtonOK.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            fireOkAcion(evt);
        }
    });

    javax.swing.GroupLayout jPanelBottomLayout = new javax.swing.GroupLayout(jPanelBottom);
    jPanelBottom.setLayout(jPanelBottomLayout);
    jPanelBottomLayout.setHorizontalGroup(jPanelBottomLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBottomLayout.createSequentialGroup().addContainerGap().addComponent(jButtonToday)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 97, Short.MAX_VALUE)
                    .addComponent(jButtonOK).addContainerGap()));
    jPanelBottomLayout.setVerticalGroup(
            jPanelBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    jPanelBottomLayout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanelBottomLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jButtonToday).addComponent(jButtonOK))
                            .addContainerGap()));

    add(jPanelBottom, java.awt.BorderLayout.PAGE_END);
}

From source file:GUI.LoginPanel.java

/**
 * 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./*w w w.  j  av  a  2 s . c o m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    nameField = new javax.swing.JTextField();
    passField = new javax.swing.JPasswordField();
    loginButton = new javax.swing.JButton();

    jLabel1.setText("Username:");

    jLabel2.setText("Password:");

    nameField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            nameFieldActionPerformed(evt);
        }
    });

    passField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            passFieldActionPerformed(evt);
        }
    });

    loginButton.setText("Login");
    loginButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loginButtonActionPerformed(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(130, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1).addComponent(jLabel2))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(passField, javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(nameField, javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(41, 41, 41).addComponent(loginButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(71, 71, 71)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(25, 25, 25).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1)
                    .addComponent(nameField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2).addComponent(passField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(18, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(loginButton).addGap(34, 34, 34)));
}

From source file:motordrivertxrx.View.MainView.java

/**
 * 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./*ww w  .j a v  a  2  s .c  o  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    exitLabel = new javax.swing.JLabel();
    statusLabel = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    velocimetroPanel = new javax.swing.JPanel();
    chartPanel = new javax.swing.JPanel();
    sliderVelocimeter = new javax.swing.JSlider();
    directionLabel = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setUndecorated(true);

    jPanel1.setBackground(new java.awt.Color(255, 255, 255));

    jLabel1.setFont(new java.awt.Font("Arial Rounded MT Bold", 0, 48)); // NOI18N
    jLabel1.setText("Motor RX TX ");

    exitLabel.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/motordrivertxrx/Images/1430019599_Log Out.png"))); // NOI18N

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 367,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(statusLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 67,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(exitLabel).addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(exitLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    jPanel1Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(statusLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(23, 23, 23)));

    jPanel2.setBackground(new java.awt.Color(255, 255, 255));

    velocimetroPanel.setBackground(new java.awt.Color(255, 255, 255));
    velocimetroPanel.setLayout(new java.awt.BorderLayout());

    chartPanel.setBackground(new java.awt.Color(255, 204, 0));

    javax.swing.GroupLayout chartPanelLayout = new javax.swing.GroupLayout(chartPanel);
    chartPanel.setLayout(chartPanelLayout);
    chartPanelLayout.setHorizontalGroup(chartPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 203, Short.MAX_VALUE));
    chartPanelLayout.setVerticalGroup(chartPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 449, Short.MAX_VALUE));

    sliderVelocimeter.setMajorTickSpacing(5);
    sliderVelocimeter.setMaximum(127);
    sliderVelocimeter.setMinorTickSpacing(1);
    sliderVelocimeter.setPaintLabels(true);
    sliderVelocimeter.setPaintTicks(true);
    sliderVelocimeter.setSnapToTicks(true);
    sliderVelocimeter.setValue(0);

    directionLabel.setText("Derecha");

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(velocimetroPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 400,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGap(27, 27, 27).addComponent(
                                    directionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 201,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(chartPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(sliderVelocimeter, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(chartPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(velocimetroPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 400,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(directionLabel,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(sliderVelocimeter, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel2,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE)));

    pack();
}