Example usage for javax.swing GroupLayout createSequentialGroup

List of usage examples for javax.swing GroupLayout createSequentialGroup

Introduction

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

Prototype

public SequentialGroup createSequentialGroup() 

Source Link

Document

Creates and returns a SequentialGroup .

Usage

From source file:io.github.jeddict.jpa.modeler.properties.implement.JavaClassArtifactPanel.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   ww  w. jav  a2 s. c o  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    root_jLayeredPane = new javax.swing.JLayeredPane();
    action_jLayeredPane = new javax.swing.JLayeredPane();
    save_Button = new javax.swing.JButton();
    cancel_Button = new javax.swing.JButton();
    dataType_Action = new javax.swing.JButton();
    class_wrapperPanel = new javax.swing.JLayeredPane();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    org.openide.awt.Mnemonics.setLocalizedText(save_Button, org.openide.util.NbBundle
            .getMessage(JavaClassArtifactPanel.class, "JavaClassArtifactPanel.save_Button.text")); // NOI18N
    save_Button.setToolTipText(org.openide.util.NbBundle.getMessage(JavaClassArtifactPanel.class,
            "JavaClassArtifactPanel.save_Button.toolTipText")); // NOI18N
    save_Button.setSelected(true);
    save_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            save_ButtonActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(cancel_Button, org.openide.util.NbBundle
            .getMessage(JavaClassArtifactPanel.class, "JavaClassArtifactPanel.cancel_Button.text")); // NOI18N
    cancel_Button.setToolTipText(org.openide.util.NbBundle.getMessage(JavaClassArtifactPanel.class,
            "JavaClassArtifactPanel.cancel_Button.toolTipText")); // NOI18N
    cancel_Button.setPreferredSize(new java.awt.Dimension(60, 23));
    cancel_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancel_ButtonActionPerformed(evt);
        }
    });

    action_jLayeredPane.setLayer(save_Button, javax.swing.JLayeredPane.DEFAULT_LAYER);
    action_jLayeredPane.setLayer(cancel_Button, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout action_jLayeredPaneLayout = new javax.swing.GroupLayout(action_jLayeredPane);
    action_jLayeredPane.setLayout(action_jLayeredPaneLayout);
    action_jLayeredPaneLayout.setHorizontalGroup(
            action_jLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(action_jLayeredPaneLayout.createSequentialGroup()
                            .addComponent(save_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cancel_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 70,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    action_jLayeredPaneLayout.setVerticalGroup(action_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(action_jLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(save_Button).addComponent(cancel_Button, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    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(37, 37));
    dataType_Action.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dataType_ActionActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout class_wrapperPanelLayout = new javax.swing.GroupLayout(class_wrapperPanel);
    class_wrapperPanel.setLayout(class_wrapperPanelLayout);
    class_wrapperPanelLayout.setHorizontalGroup(class_wrapperPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    class_wrapperPanelLayout.setVerticalGroup(class_wrapperPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 18, Short.MAX_VALUE));

    root_jLayeredPane.setLayer(action_jLayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(dataType_Action, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(class_wrapperPanel, 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().addContainerGap()
                    .addGroup(root_jLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(class_wrapperPanel)
                            .addGroup(root_jLayeredPaneLayout.createSequentialGroup()
                                    .addComponent(dataType_Action, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 186,
                                            Short.MAX_VALUE)
                                    .addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    root_jLayeredPaneLayout.setVerticalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(class_wrapperPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(root_jLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dataType_Action, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
                                    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(root_jLayeredPane));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(root_jLayeredPane));

    pack();
}

From source file:UserInterface.Doctor.DoctorWorkAreaJPanel.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. jav a  2 s. com*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    txtPatientAddress = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    txtDroneLocation = new javax.swing.JTextField();
    jScrollPane1 = new javax.swing.JScrollPane();
    tblWorkRequest = new javax.swing.JTable();
    jButton1 = new javax.swing.JButton();
    txtMessage = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    btnTakeOff = new javax.swing.JButton();
    jLabel5 = new javax.swing.JLabel();
    lblEta = new javax.swing.JLabel();
    lbl1 = new javax.swing.JLabel();
    pnlVitalSign = new javax.swing.JPanel();
    jButton2 = new javax.swing.JButton();

    txtPatientAddress.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N

    jLabel2.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    jLabel2.setText("Patient Address:");

    jLabel3.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    jLabel3.setText("Drone Location:");

    txtDroneLocation.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N

    tblWorkRequest.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    tblWorkRequest.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "Request Date", "Patient Name", "Status" }) {
        boolean[] canEdit = new boolean[] { false, false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jScrollPane1.setViewportView(tblWorkRequest);
    if (tblWorkRequest.getColumnModel().getColumnCount() > 0) {
        tblWorkRequest.getColumnModel().getColumn(0).setResizable(false);
        tblWorkRequest.getColumnModel().getColumn(1).setResizable(false);
        tblWorkRequest.getColumnModel().getColumn(2).setResizable(false);
    }

    jButton1.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    jButton1.setText("Release Drone");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    txtMessage.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    txtMessage.setText(" ");

    jLabel4.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    jLabel4.setText("Doctor's initial comments:");

    btnTakeOff.setText("Take Off");
    btnTakeOff.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnTakeOffActionPerformed(evt);
        }
    });

    jLabel5.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    jLabel5.setText("ETA:");

    lblEta.setFont(new java.awt.Font("Arial", 0, 18)); // NOI18N
    lblEta.setText("                    ");

    lbl1.setBackground(new java.awt.Color(255, 255, 255));
    lbl1.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
    lbl1.setText("Welcome ");

    jButton2.setText("See VitalSigns");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(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)
                            .addComponent(pnlVitalSign, javax.swing.GroupLayout.PREFERRED_SIZE, 744,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbl1, javax.swing.GroupLayout.PREFERRED_SIZE, 302,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 744,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(btnTakeOff, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel3).addComponent(jLabel2)).addGap(31, 31, 31)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addComponent(lblEta, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            107, Short.MAX_VALUE)
                                                    .addComponent(txtDroneLocation,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE, 107,
                                                            Short.MAX_VALUE)
                                                    .addComponent(txtPatientAddress))
                                            .addGap(156, 156, 156).addComponent(jLabel4).addGap(18, 18, 18)
                                            .addComponent(txtMessage, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    209, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18).addComponent(jButton1))
                                    .addComponent(jLabel5))
                            .addContainerGap(97, Short.MAX_VALUE)))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(lbl1, javax.swing.GroupLayout.PREFERRED_SIZE, 58,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup().addGap(17, 17, 17).addComponent(btnTakeOff)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton2)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pnlVitalSign, javax.swing.GroupLayout.DEFAULT_SIZE, 281, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2).addComponent(txtPatientAddress,
                                    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.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(txtDroneLocation, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtMessage, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4).addComponent(jButton1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(lblEta))
                    .addContainerGap()));
}

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

    buttonGroup1 = new javax.swing.ButtonGroup();
    jButton1 = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jComboBox1 = new javax.swing.JComboBox();
    jButton2 = new javax.swing.JButton();
    jCheckBoxDespesa = new javax.swing.JCheckBox();
    jCheckBoxProvento = new javax.swing.JCheckBox();
    jButton3 = new javax.swing.JButton();
    try {
        MaskFormatter mask = new MaskFormatter("##/##/####");
        dataInicial = new javax.swing.JFormattedTextField(mask);

        dataFinal = new javax.swing.JFormattedTextField(mask);
    } catch (Exception ex) {

    }

    setClosable(true);

    jButton1.setText("Gerar Lista");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    jLabel3.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
    jLabel3.setText("Relatorio");

    jTable1.setBackground(new java.awt.Color(254, 254, 254));
    jTable1.setDefaultRenderer(Object.class, new view.RenderizadorTransacao());
    jTable1.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "ID", "Despesa/Provento", "Descrio", "Valor", "Categoria", "Recorrencia",
            "Data de inserao" }) {
        boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jTable1.setFocusable(false);
    jTable1.setRowSelectionAllowed(false);
    jScrollPane2.setViewportView(jTable1);

    jLabel1.setText("Data Inicial:");

    jLabel2.setText("Data Final:");

    jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione a Categoria" }));
    jComboBox1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboBox1ActionPerformed(evt);
        }
    });

    jButton2.setText("Gerar Grfico");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    jCheckBoxDespesa.setText("Despesa");

    jCheckBoxProvento.setText("Provento");

    jButton3.setText("Gerar Histograma");
    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.LEADING).addComponent(jScrollPane2)
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3)
                            .addGroup(layout.createSequentialGroup().addComponent(jCheckBoxDespesa)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jCheckBoxProvento).addGap(46, 46, 46)
                                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(dataInicial, javax.swing.GroupLayout.PREFERRED_SIZE, 166,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(jLabel2).addGap(6, 6, 6)
                                    .addComponent(dataFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(0, 238, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel3).addGap(13, 13, 13)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 179, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(dataInicial, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dataFinal, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jComboBox1,
                                    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(jButton1).addComponent(jButton2).addComponent(jCheckBoxDespesa)
                            .addComponent(jCheckBoxProvento).addComponent(jButton3))
                    .addContainerGap()));

    pack();
}

From source file:mase.jbot.JBotViewer.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. ja  va  2s. com*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    mainPanel = new javax.swing.JPanel();
    stepButton = new javax.swing.JButton();
    runButton = new javax.swing.JToggleButton();
    intervalSlider = new javax.swing.JSlider();
    renderPanel = new javax.swing.JPanel();
    restartButton = new javax.swing.JButton();
    timeBar = new javax.swing.JProgressBar();
    timeField = new javax.swing.JTextField();
    seedSpinner = new javax.swing.JSpinner();
    solutionPath = new javax.swing.JLabel();
    jbotPath = new javax.swing.JLabel();
    seedIncCheck = new javax.swing.JCheckBox();
    fitnessField = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("JBotPlayer");

    mainPanel.setMinimumSize(new java.awt.Dimension(400, 400));
    mainPanel.setPreferredSize(new java.awt.Dimension(700, 796));

    stepButton.setText("Step");
    stepButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            stepButtonActionPerformed(evt);
        }
    });

    runButton.setText("Run");
    runButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            runButtonActionPerformed(evt);
        }
    });

    intervalSlider.setMajorTickSpacing(20);
    intervalSlider.setMinorTickSpacing(10);
    intervalSlider.setPaintLabels(true);
    intervalSlider.setPaintTicks(true);
    intervalSlider.setValue(30);

    renderPanel.setPreferredSize(new java.awt.Dimension(700, 700));

    javax.swing.GroupLayout renderPanelLayout = new javax.swing.GroupLayout(renderPanel);
    renderPanel.setLayout(renderPanelLayout);
    renderPanelLayout.setHorizontalGroup(renderPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 700, Short.MAX_VALUE));
    renderPanelLayout.setVerticalGroup(renderPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 694, Short.MAX_VALUE));

    restartButton.setText("Restart");
    restartButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            restartButtonActionPerformed(evt);
        }
    });

    timeField.setEditable(false);
    timeField.setText("0");

    solutionPath.setText("jLabel1");

    jbotPath.setText("jLabel2");

    seedIncCheck.setSelected(true);

    fitnessField.setEditable(false);

    javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
    mainPanel.setLayout(mainPanelLayout);
    mainPanelLayout.setHorizontalGroup(mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                    .addComponent(stepButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(runButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(restartButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(seedSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 60,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(seedIncCheck)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(intervalSlider, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(timeBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(timeField,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(mainPanelLayout.createSequentialGroup()
                    .addComponent(renderPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE))
            .addGroup(mainPanelLayout.createSequentialGroup()
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(solutionPath).addComponent(jbotPath))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(fitnessField, javax.swing.GroupLayout.PREFERRED_SIZE, 150,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));
    mainPanelLayout.setVerticalGroup(mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup().addGroup(mainPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(seedIncCheck, javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(stepButton).addComponent(runButton).addComponent(restartButton)
                            .addComponent(seedSpinner, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(intervalSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(mainPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(timeBar, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(timeField, javax.swing.GroupLayout.Alignment.LEADING)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(renderPanel, 694, 694, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(mainPanelLayout.createSequentialGroup().addComponent(solutionPath)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jbotPath))
                            .addComponent(fitnessField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 812, javax.swing.GroupLayout.PREFERRED_SIZE));

    pack();
}

From source file:cz.moz.ctmanager.main.DetailsFrame.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() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jButton6 = new javax.swing.JButton();
    removeEmailButton = new javax.swing.JButton();
    removePhoneButton = new javax.swing.JButton();
    addPhoneButton = new javax.swing.JButton();
    addEmailButton = new javax.swing.JButton();
    jScrollPane4 = new javax.swing.JScrollPane();
    phoneTable = new javax.swing.JTable();
    jScrollPane5 = new javax.swing.JScrollPane();
    emailTable = new javax.swing.JTable();
    firstNameTextField = new javax.swing.JTextField();
    addressTextField = new javax.swing.JTextField();
    lastNameTextField = new javax.swing.JTextField();

    jTable1.setModel(
            new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jScrollPane1.setViewportView(jTable1);

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

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    removeEmailButton.setText("Remove");
    removeEmailButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removeEmailButtonActionPerformed(evt);
        }
    });

    removePhoneButton.setText("Remove");
    removePhoneButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removePhoneButtonActionPerformed(evt);
        }
    });

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

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

    phoneTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "ID", "Number", "Description" }) {
        Class[] types = new Class[] { java.lang.Integer.class, java.lang.String.class, java.lang.String.class };
        boolean[] canEdit = new boolean[] { false, false, false };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jScrollPane4.setViewportView(phoneTable);

    emailTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "ID", "Email", "Description" }) {
        Class[] types = new Class[] { java.lang.Integer.class, java.lang.String.class, java.lang.String.class };
        boolean[] canEdit = new boolean[] { false, false, false };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jScrollPane5.setViewportView(emailTable);

    firstNameTextField.setText("First Name");

    addressTextField.setText("Address");

    lastNameTextField.setText("Last Name");

    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)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addComponent(addEmailButton, javax.swing.GroupLayout.PREFERRED_SIZE, 92,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(removeEmailButton, javax.swing.GroupLayout.PREFERRED_SIZE, 92,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(addPhoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 92,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(removePhoneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 92,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 325,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(
                                            jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 325,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(lastNameTextField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 190,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(firstNameTextField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 190,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(addressTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 190,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(270, 270, 270)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(firstNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(addressTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(lastNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(20, 20, 20)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 256,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 256,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(removePhoneButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(addPhoneButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(removeEmailButton).addComponent(addEmailButton))
                    .addContainerGap()));

    pack();
}

From source file:com.github.cshubhamrao.MediaConverter.MainUI.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. j  a  v  a2 s .  c om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    inputFileChooser = new javax.swing.JFileChooser();
    outputFileChooser = new javax.swing.JFileChooser();
    filePanel = new javax.swing.JPanel();
    inputFileLabel = new javax.swing.JLabel();
    inputFile = new javax.swing.JTextField();
    inputFileBrowse = new javax.swing.JButton();
    outputFileLabel = new javax.swing.JLabel();
    outputFile = new javax.swing.JTextField();
    outputFileBrowse = new javax.swing.JButton();
    progressBar = new javax.swing.JProgressBar();
    exitButton = new javax.swing.JButton();
    startButton = new javax.swing.JButton();
    versionInfo = new javax.swing.JButton();
    outputLogLabel = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    outputArea = new javax.swing.JTextArea();

    inputFileChooser.setCurrentDirectory(new java.io.File("C:\\Users\\Shubham\\Videos"));
    inputFileChooser.setDialogTitle("Open file for conversion");

    outputFileChooser.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG);
    outputFileChooser.setCurrentDirectory(new java.io.File("C:\\Users\\Shubham\\Videos"));
    outputFileChooser.setDialogTitle("Save the output file as");

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Media Converter");
    setLocationByPlatform(true);
    setResizable(false);

    filePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "File Selection",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N

    inputFileLabel.setText("Input File");

    inputFileBrowse.setText("Browse");
    inputFileBrowse.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            inputFileBrowseActionPerformed(evt);
        }
    });

    outputFileLabel.setText("Output File");

    outputFileBrowse.setText("Browse");
    outputFileBrowse.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            outputFileBrowseActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout filePanelLayout = new javax.swing.GroupLayout(filePanel);
    filePanel.setLayout(filePanelLayout);
    filePanelLayout.setHorizontalGroup(filePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(filePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(filePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(outputFileLabel).addComponent(inputFileLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(filePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(outputFile).addComponent(inputFile))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(filePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(inputFileBrowse, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(outputFileBrowse, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addContainerGap()));
    filePanelLayout.setVerticalGroup(filePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(filePanelLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(filePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(inputFileLabel)
                            .addComponent(inputFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(inputFileBrowse))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(filePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(outputFileLabel)
                            .addComponent(outputFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(outputFileBrowse))));

    progressBar.setName(""); // NOI18N
    progressBar.setStringPainted(true);

    exitButton.setText("Exit");
    exitButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            exitButtonActionPerformed(evt);
        }
    });

    startButton.setText("Start");

    versionInfo.setText("Display Version");
    versionInfo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            versionInfoActionPerformed(evt);
        }
    });

    outputLogLabel.setText("Output Log");

    outputArea.setColumns(20);
    outputArea.setRows(5);
    outputArea.setText("Version: 0.1.0 Pre Alpha");
    jScrollPane2.setViewportView(outputArea);

    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().addComponent(exitButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 172, Short.MAX_VALUE)
                    .addComponent(startButton).addContainerGap())
            .addGroup(layout.createSequentialGroup().addGap(10, 10, 10)
                    .addComponent(filePanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(10, 10, 10))
            .addGroup(layout.createSequentialGroup().addGap(10, 10, 10)
                    .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(10, 10, 10))
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jScrollPane2)
                    .addContainerGap())
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(outputLogLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(versionInfo).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(filePanel, 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(outputLogLabel).addComponent(versionInfo))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(exitButton).addComponent(startButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    pack();
}

From source file:simx.profiler.discovery.latency.LatencyReportTopComponent.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 a  v  a  2s. co m
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    minLatencyTextField = new javax.swing.JTextField();
    maxLantecyTextField = new javax.swing.JTextField();
    avgLatencyTextField = new javax.swing.JTextField();
    medLatencyTextField = new javax.swing.JTextField();
    latencyOverTimePanel = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    pathTable = new javax.swing.JTable();

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle
            .getMessage(LatencyReportTopComponent.class, "LatencyReportTopComponent.jPanel1.border.title"))); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle
            .getMessage(LatencyReportTopComponent.class, "LatencyReportTopComponent.jLabel1.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle
            .getMessage(LatencyReportTopComponent.class, "LatencyReportTopComponent.jLabel2.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle
            .getMessage(LatencyReportTopComponent.class, "LatencyReportTopComponent.jLabel3.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle
            .getMessage(LatencyReportTopComponent.class, "LatencyReportTopComponent.jLabel4.text")); // NOI18N

    minLatencyTextField.setText(org.openide.util.NbBundle.getMessage(LatencyReportTopComponent.class,
            "LatencyReportTopComponent.minLatencyTextField.text")); // NOI18N
    minLatencyTextField.setEnabled(false);

    maxLantecyTextField.setText(org.openide.util.NbBundle.getMessage(LatencyReportTopComponent.class,
            "LatencyReportTopComponent.maxLantecyTextField.text")); // NOI18N
    maxLantecyTextField.setEnabled(false);

    avgLatencyTextField.setText(org.openide.util.NbBundle.getMessage(LatencyReportTopComponent.class,
            "LatencyReportTopComponent.avgLatencyTextField.text")); // NOI18N
    avgLatencyTextField.setEnabled(false);

    medLatencyTextField.setText(org.openide.util.NbBundle.getMessage(LatencyReportTopComponent.class,
            "LatencyReportTopComponent.medLatencyTextField.text")); // NOI18N
    medLatencyTextField.setEnabled(false);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2).addComponent(jLabel1).addComponent(jLabel3)
                            .addComponent(jLabel4))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(medLatencyTextField).addComponent(avgLatencyTextField)
                            .addComponent(minLatencyTextField).addComponent(maxLantecyTextField))));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(minLatencyTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2).addComponent(maxLantecyTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(avgLatencyTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4).addComponent(medLatencyTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))));

    latencyOverTimePanel.setBorder(javax.swing.BorderFactory
            .createTitledBorder(org.openide.util.NbBundle.getMessage(LatencyReportTopComponent.class,
                    "LatencyReportTopComponent.latencyOverTimePanel.border.title"))); // NOI18N

    javax.swing.GroupLayout latencyOverTimePanelLayout = new javax.swing.GroupLayout(latencyOverTimePanel);
    latencyOverTimePanel.setLayout(latencyOverTimePanelLayout);
    latencyOverTimePanelLayout.setHorizontalGroup(latencyOverTimePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 405, Short.MAX_VALUE));
    latencyOverTimePanelLayout.setVerticalGroup(latencyOverTimePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 160, Short.MAX_VALUE));

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle
            .getMessage(LatencyReportTopComponent.class, "LatencyReportTopComponent.jPanel3.border.title"))); // NOI18N

    pathTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null }, { null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null } },
            new String[] { "Time Span", "Actor Instance", "Message Type", "Min", "Max", "Avg.", "Med." }) {
        Class[] types = new Class[] { java.lang.String.class, java.lang.String.class, java.lang.String.class,
                java.lang.Long.class, java.lang.Long.class, java.lang.Double.class, java.lang.Long.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    jScrollPane2.setViewportView(pathTable);
    if (pathTable.getColumnModel().getColumnCount() > 0) {
        pathTable.getColumnModel().getColumn(0).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title0")); // NOI18N
        pathTable.getColumnModel().getColumn(1).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title1")); // NOI18N
        pathTable.getColumnModel().getColumn(2).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title2")); // NOI18N
        pathTable.getColumnModel().getColumn(3).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title3")); // NOI18N
        pathTable.getColumnModel().getColumn(4).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title4")); // NOI18N
        pathTable.getColumnModel().getColumn(5).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title5")); // NOI18N
        pathTable.getColumnModel().getColumn(6).setHeaderValue(org.openide.util.NbBundle.getMessage(
                LatencyReportTopComponent.class, "LatencyReportTopComponent.pathTable.columnModel.title6")); // NOI18N
    }

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout
            .setHorizontalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE));

    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.TRAILING)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(latencyOverTimePanel, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(latencyOverTimePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));
}

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

    txtAdresse = new javax.swing.JTextField();
    btnGo = new javax.swing.JButton();
    listResultats = new javax.swing.JScrollPane();
    listRes = new javax.swing.JList();
    jButton1 = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    lblResultat = new javax.swing.JTextArea();

    setTitle("ST3");

    btnGo.setText("Recherche");
    btnGo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnGoActionPerformed(evt);
        }
    });

    listRes.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            listResMouseClicked(evt);
        }
    });
    listRes.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
        public void mouseDragged(java.awt.event.MouseEvent evt) {
            listResMouseDragged(evt);
        }
    });
    listRes.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            listResValueChanged(evt);
        }
    });
    listResultats.setViewportView(listRes);

    jButton1.setText("Retour");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    jLabel1.setText("Rsultat sur le type de transport  prendre :");

    jLabel2.setText("Veuillez entrer votre point de dpart :");

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

    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.LEADING)
                    .addGroup(layout.createSequentialGroup().addComponent(jLabel2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtAdresse, javax.swing.GroupLayout.PREFERRED_SIZE, 258,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                                    .addComponent(jButton1))
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(btnGo, javax.swing.GroupLayout.PREFERRED_SIZE, 136,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(listResultats, javax.swing.GroupLayout.PREFERRED_SIZE, 330,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 274,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 139, Short.MAX_VALUE))
                                    .addComponent(jScrollPane1))))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2)
                    .addComponent(txtAdresse, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnGo)).addGap(12, 12, 12)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(listResultats, javax.swing.GroupLayout.DEFAULT_SIZE, 244,
                                    Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jScrollPane1, 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(jButton1)))
                    .addContainerGap()));

    pack();
}

From source file:com.stanley.captioner.MainFrame.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  va 2 s  .  co  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    videoScroller = new javax.swing.JScrollPane();
    videoTable = new javax.swing.JTable();
    addButton = new javax.swing.JButton();
    removeButton = new javax.swing.JButton();
    clearButton = new javax.swing.JButton();
    convertButton = new javax.swing.JButton();
    outputDirectoryButton = new javax.swing.JButton();
    outputDirectoryField = new javax.swing.JTextField();
    outputFormatCombo = new javax.swing.JComboBox<>();
    quickTestCheckBox = new javax.swing.JCheckBox();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Automatic Video Captioner");

    videoScroller.setBackground(new java.awt.Color(255, 255, 255));
    videoScroller.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

    videoTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "File Name", "Type", "Size", "Length", "Codec", "Width", "Height" }) {
        boolean[] canEdit = new boolean[] { false, false, false, false, true, true, true };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    videoTable.setFillsViewportHeight(true);
    videoTable.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    videoTable.setShowHorizontalLines(false);
    videoTable.setShowVerticalLines(false);
    videoScroller.setViewportView(videoTable);

    addButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/add_icon.png"))); // NOI18N
    addButton.setText("Add");
    addButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addButtonActionPerformed(evt);
        }
    });

    removeButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/remove_icon.png"))); // NOI18N
    removeButton.setText("Remove");
    removeButton.setEnabled(false);
    removeButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removeButtonActionPerformed(evt);
        }
    });

    clearButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/clear_icon.png"))); // NOI18N
    clearButton.setText("Clear");
    clearButton.setEnabled(false);
    clearButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clearButtonActionPerformed(evt);
        }
    });

    convertButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/convert_icon.png"))); // NOI18N
    convertButton.setText("Convert");
    convertButton.setEnabled(false);
    convertButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            convertButtonActionPerformed(evt);
        }
    });

    outputDirectoryButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/output_icon.png"))); // NOI18N
    outputDirectoryButton.setText("Output Directory");
    outputDirectoryButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            outputDirectoryButtonActionPerformed(evt);
        }
    });

    outputDirectoryField.setEditable(false);

    outputFormatCombo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "MP4", "AVI" }));

    quickTestCheckBox.setText("Quick Test");

    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(videoScroller)
                            .addGroup(layout.createSequentialGroup().addComponent(outputDirectoryButton)
                                    .addGap(18, 18, 18)
                                    .addComponent(outputDirectoryField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            529, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(outputFormatCombo, 0, 80, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addComponent(addButton)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(removeButton)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(clearButton))
                                    .addGroup(layout.createSequentialGroup().addComponent(convertButton)
                                            .addGap(60, 60, 60).addComponent(quickTestCheckBox)))
                                    .addGap(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(addButton).addComponent(removeButton).addComponent(clearButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(videoScroller, javax.swing.GroupLayout.PREFERRED_SIZE, 335,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(outputDirectoryField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(outputFormatCombo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(outputDirectoryButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(convertButton).addComponent(quickTestCheckBox))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:fi.marketing.list.ui.DashboardUI.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  av a  2 s  .co  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    db = new javax.swing.JFileChooser();
    contactListName = new javax.swing.JTextField();
    nameNewMarketingList = new javax.swing.JTextField();
    addContactListButton = new javax.swing.JButton();
    createMarketingListButton = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    infoArea1 = new javax.swing.JTextArea();
    jScrollPane2 = new javax.swing.JScrollPane();
    infoArea2 = new javax.swing.JTextArea();
    jScrollPane3 = new javax.swing.JScrollPane();
    resultArea = new javax.swing.JTextArea();
    selectType = new javax.swing.JComboBox<>();
    jScrollPane4 = new javax.swing.JScrollPane();
    infoAreaStatistics = new javax.swing.JTextArea();
    jTextField1 = new javax.swing.JTextField();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    jMenuItem1 = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();

    db.setControlButtonsAreShown(false);
    String directory = getClass().getProtectionDomain().getCodeSource().getLocation().toString();
    db.setCurrentDirectory(new java.io.File(directory));

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Dashboard");

    contactListName.setText("Give a Name to new Contact List");
    contactListName.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            contactListName.setText("");
        }
    });

    nameNewMarketingList.setText("Give a Name to new Marketing List");
    nameNewMarketingList.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            nameNewMarketingList.setText("");
        }
    });

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

    createMarketingListButton.setText("Create");
    createMarketingListButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            createMarketingListButtonActionPerformed(evt);
        }
    });

    infoArea1.setColumns(20);
    infoArea1.setRows(5);
    infoArea1.setText(
            "There are in the resources directory \n contact files koe1.txt, test1.txt and test2.txt to choose from. \n You can try to upload the same file twice \n and see that duplicates are not produced.");
    infoArea1.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            infoArea1.setText("");
        }
    });
    jScrollPane1.setViewportView(infoArea1);

    infoArea2.setColumns(20);
    infoArea2.setRows(5);
    jScrollPane2.setViewportView(infoArea2);

    resultArea.setColumns(20);
    resultArea.setRows(5);
    jScrollPane3.setViewportView(resultArea);

    selectType.setModel(new javax.swing.DefaultComboBoxModel<>(
            new String[] { "Collect Phone Numbers", "Collect Email Addresses" }));

    infoAreaStatistics.setColumns(20);
    infoAreaStatistics.setRows(5);
    jScrollPane4.setViewportView(infoAreaStatistics);

    jTextField1.setText("Upload more Contacts from a File");
    jTextField1.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            jTextField1.setText("");
            openAFileChooser();
        }
    });

    jMenu1.setText("File");

    jMenuItem1.setText("Open a file");
    jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuItem1ActionPerformed(evt);
        }
    });
    jMenu1.add(jMenuItem1);

    jMenuBar1.add(jMenu1);

    jMenu2.setText("Help");
    jMenuBar1.add(jMenu2);

    setJMenuBar(jMenuBar1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(30, 30, 30).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 393,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(selectType, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    220, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(createMarketingListButton))
                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addComponent(nameNewMarketingList, javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61,
                                    Short.MAX_VALUE)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 473,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(contactListName, javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(addContactListButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            71, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(0, 0, Short.MAX_VALUE)))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(14, 14, 14)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 22,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(
                            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(addContactListButton).addComponent(contactListName,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(18, 18, 18)
                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18)
                                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(12, 12, 12)
                                            .addComponent(nameNewMarketingList,
                                                    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)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(selectType,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(createMarketingListButton))
                                            .addGap(18, 18, 18)
                                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    115, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(63, 63, 63))
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    468, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    Short.MAX_VALUE)))));

    pack();
}