Example usage for javax.swing GroupLayout setVerticalGroup

List of usage examples for javax.swing GroupLayout setVerticalGroup

Introduction

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

Prototype

public void setVerticalGroup(Group group) 

Source Link

Document

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

Usage

From source file:lospolloshermanos.SalesTablePan.java

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

    jPanel1 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jPanel3 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    jSeparator1 = new javax.swing.JSeparator();
    jLabel1 = new javax.swing.JLabel();
    jLabel12 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    jLabel14 = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();

    setOpaque(false);

    jPanel1.setOpaque(false);

    jLabel2.setBackground(javax.swing.UIManager.getDefaults().getColor("EditorPane.caretForeground"));
    jLabel2.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N
    jLabel2.setForeground(new java.awt.Color(241, 234, 234));
    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel2.setText("Category Name");
    jLabel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jLabel2.setMaximumSize(new java.awt.Dimension(50, 20));
    jLabel2.setMinimumSize(new java.awt.Dimension(50, 20));
    jLabel2.setOpaque(true);

    jLabel3.setBackground(javax.swing.UIManager.getDefaults().getColor("EditorPane.caretForeground"));
    jLabel3.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N
    jLabel3.setForeground(new java.awt.Color(241, 234, 234));
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel3.setText("No. of Items Sold");
    jLabel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jLabel3.setMaximumSize(new java.awt.Dimension(50, 20));
    jLabel3.setMinimumSize(new java.awt.Dimension(50, 20));
    jLabel3.setOpaque(true);

    jLabel4.setBackground(javax.swing.UIManager.getDefaults().getColor("EditorPane.caretForeground"));
    jLabel4.setFont(new java.awt.Font("DejaVu Sans", 1, 13)); // NOI18N
    jLabel4.setForeground(new java.awt.Color(241, 234, 234));
    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel4.setText("Subtotal");
    jLabel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jLabel4.setMaximumSize(new java.awt.Dimension(50, 20));
    jLabel4.setMinimumSize(new java.awt.Dimension(50, 20));
    jLabel4.setOpaque(true);

    jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

    jPanel3.setBackground(new java.awt.Color(13, 13, 13));
    jPanel3.setBorder(null);
    jPanel3.setAutoscrolls(true);

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 667, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 605, Short.MAX_VALUE));

    jScrollPane1.setViewportView(jPanel3);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGap(0, 0, 0)
                                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 205,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, 0).addComponent(jLabel4,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 212,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 687,
                                    javax.swing.GroupLayout.PREFERRED_SIZE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 422,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jPanel2.setBackground(new java.awt.Color(30, 30, 30));
    jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(224, 224, 224)));

    jLabel5.setBackground(new java.awt.Color(30, 30, 30));
    jLabel5.setFont(new java.awt.Font("DejaVu Sans", 1, 20)); // NOI18N
    jLabel5.setForeground(new java.awt.Color(241, 234, 234));
    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel5.setText("Grand Total  $  0.000");
    jLabel5.setBorder(null);
    jLabel5.setMaximumSize(new java.awt.Dimension(50, 20));
    jLabel5.setMinimumSize(new java.awt.Dimension(50, 20));

    jLabel6.setBackground(new java.awt.Color(97, 97, 97));
    jLabel6.setFont(new java.awt.Font("Ubuntu", 1, 13)); // NOI18N
    jLabel6.setForeground(new java.awt.Color(250, 243, 243));
    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel6.setText("View Categorywise");
    jLabel6.setOpaque(true);
    jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jLabel6MouseClicked(evt);
        }

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

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

    jLabel7.setBackground(new java.awt.Color(97, 97, 97));
    jLabel7.setFont(new java.awt.Font("Ubuntu", 1, 13)); // NOI18N
    jLabel7.setForeground(new java.awt.Color(250, 243, 243));
    jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel7.setText("View Itemwise");
    jLabel7.setOpaque(true);
    jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jLabel7MouseClicked(evt);
        }

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

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

    jLabel9.setBackground(new java.awt.Color(97, 97, 97));
    jLabel9.setFont(new java.awt.Font("Ubuntu", 1, 13)); // NOI18N
    jLabel9.setForeground(new java.awt.Color(250, 243, 243));
    jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel9.setText("Close");
    jLabel9.setOpaque(true);
    jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jLabel9MouseClicked(evt);
        }

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

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

    jLabel10.setBackground(new java.awt.Color(97, 97, 97));
    jLabel10.setFont(new java.awt.Font("Ubuntu", 1, 13)); // NOI18N
    jLabel10.setForeground(new java.awt.Color(250, 243, 243));
    jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel10.setText("Print Sales");
    jLabel10.setOpaque(true);
    jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jLabel10MouseClicked(evt);
        }

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

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

    jLabel1.setFont(new java.awt.Font("DejaVu Sans", 1, 11)); // NOI18N
    jLabel1.setForeground(new java.awt.Color(236, 236, 236));
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("From  :");

    jLabel12.setFont(new java.awt.Font("DejaVu Sans", 1, 11)); // NOI18N
    jLabel12.setForeground(new java.awt.Color(236, 236, 236));
    jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel12.setText("To   :");

    jLabel13.setFont(new java.awt.Font("DejaVu Sans", 1, 9)); // NOI18N
    jLabel13.setForeground(new java.awt.Color(236, 236, 236));
    jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel13.setText("(DD-MM-YYYY)");

    jLabel11.setFont(new java.awt.Font("DejaVu Sans", 1, 9)); // NOI18N
    jLabel11.setForeground(new java.awt.Color(236, 236, 236));
    jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel11.setText("(DD-MM-YYYY)");

    jLabel14.setBackground(new java.awt.Color(97, 97, 97));
    jLabel14.setFont(new java.awt.Font("Ubuntu", 1, 11)); // NOI18N
    jLabel14.setForeground(new java.awt.Color(250, 243, 243));
    jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel14.setText("Category Sales Graph");
    jLabel14.setOpaque(true);
    jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jLabel14MouseClicked(evt);
        }

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

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

    jLabel16.setBackground(new java.awt.Color(97, 97, 97));
    jLabel16.setFont(new java.awt.Font("Ubuntu", 1, 11)); // NOI18N
    jLabel16.setForeground(new java.awt.Color(250, 243, 243));
    jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel16.setText("Top 5 Items Sales Graph");
    jLabel16.setOpaque(true);
    jLabel16.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jLabel16MouseClicked(evt);
        }

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

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

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout
            .setHorizontalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jSeparator1)
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 149,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(
                                                    jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 149,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel2Layout.createSequentialGroup().addGap(66, 66, 66)
                                                    .addComponent(jLabel1,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 54,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(0, 0, 0).addComponent(jLabel13,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 82,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel2Layout.createSequentialGroup().addGap(78, 78, 78)
                                                    .addComponent(jLabel12,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(0, 0, 0).addComponent(jLabel11,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 82,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                                                    .addComponent(jLabel10,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 149,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(18, 18, 18).addComponent(jLabel9,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 149,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addGap(0, 0, Short.MAX_VALUE)))
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout
                                    .createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 224,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 224,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(55, 55, 55)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, 0)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13))
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11).addComponent(jLabel12))
                    .addGap(18, 18, 18)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(46, 46, 46)
                    .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(28, 28, 28)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(21, 21, 21)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, 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()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 7, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup().addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addContainerGap()));
}

From source file:net.sf.dvstar.transmission.dialogs.StatsDialog.java

/** This method is called from within the constructor to
 * initialize the form.//from ww w  . j av a2s  .  c om
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    plTop = new javax.swing.JPanel();
    jLabel11 = new javax.swing.JLabel();
    lbActiveTorrentCount = new javax.swing.JLabel();
    plButtons = new javax.swing.JPanel();
    btClose = new javax.swing.JButton();
    btRefresh = new javax.swing.JButton();
    plInfo = new javax.swing.JPanel();
    plCurrent = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    lbDowloadC = new javax.swing.JLabel();
    lbUploadC = new javax.swing.JLabel();
    lbAddedFileC = new javax.swing.JLabel();
    lbSessionC = new javax.swing.JLabel();
    lbActivityC = new javax.swing.JLabel();
    plTotal = new javax.swing.JPanel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    lbDowloadT = new javax.swing.JLabel();
    lbUploadT = new javax.swing.JLabel();
    lbAddedFileT = new javax.swing.JLabel();
    lbSessionT = new javax.swing.JLabel();
    lbActivityT = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(net.sf.dvstar.transmission.TransmissionApp.class).getContext()
            .getResourceMap(StatsDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setMinimumSize(new java.awt.Dimension(730, 220));
    setModal(true);
    setName("Form"); // NOI18N

    plTop.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("plTop.border.title"))); // NOI18N
    plTop.setName("plTop"); // NOI18N
    plTop.setPreferredSize(new java.awt.Dimension(730, 44));

    jLabel11.setText(resourceMap.getString("lbActiveCount.text")); // NOI18N
    jLabel11.setName("jLabel11"); // NOI18N

    lbActiveTorrentCount.setText(resourceMap.getString("lbActiveTorrentCount.text")); // NOI18N
    lbActiveTorrentCount.setName("lbActiveTorrentCount"); // NOI18N

    javax.swing.GroupLayout plTopLayout = new javax.swing.GroupLayout(plTop);
    plTop.setLayout(plTopLayout);
    plTopLayout.setHorizontalGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTopLayout.createSequentialGroup().addContainerGap().addComponent(jLabel11)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(lbActiveTorrentCount).addContainerGap(287, Short.MAX_VALUE)));
    plTopLayout.setVerticalGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTopLayout.createSequentialGroup()
                    .addGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11).addComponent(lbActiveTorrentCount))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    getContentPane().add(plTop, java.awt.BorderLayout.PAGE_START);

    plButtons.setName("plButtons"); // NOI18N
    plButtons.setPreferredSize(new java.awt.Dimension(400, 48));

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(net.sf.dvstar.transmission.TransmissionApp.class).getContext()
            .getActionMap(StatsDialog.class, this);
    btClose.setAction(actionMap.get("closeDialog")); // NOI18N
    btClose.setText(resourceMap.getString("btClose.text")); // NOI18N
    btClose.setName("btClose"); // NOI18N

    btRefresh.setAction(actionMap.get("doRefresh")); // NOI18N
    btRefresh.setText(resourceMap.getString("btRefresh.text")); // NOI18N
    btRefresh.setDefaultCapable(false);
    btRefresh.setName("btRefresh"); // NOI18N

    javax.swing.GroupLayout plButtonsLayout = new javax.swing.GroupLayout(plButtons);
    plButtons.setLayout(plButtonsLayout);
    plButtonsLayout.setHorizontalGroup(plButtonsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plButtonsLayout.createSequentialGroup().addContainerGap()
                    .addComponent(btRefresh, javax.swing.GroupLayout.PREFERRED_SIZE, 101,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 242, Short.MAX_VALUE)
                    .addComponent(btClose, javax.swing.GroupLayout.PREFERRED_SIZE, 93,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    plButtonsLayout
            .setVerticalGroup(plButtonsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            plButtonsLayout.createSequentialGroup()
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(plButtonsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(btClose).addComponent(btRefresh))
                                    .addContainerGap()));

    getContentPane().add(plButtons, java.awt.BorderLayout.PAGE_END);

    plInfo.setName("plInfo"); // NOI18N
    plInfo.setLayout(new java.awt.GridLayout(1, 2));

    plCurrent.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("plCurrent.border.title"))); // NOI18N
    plCurrent.setName("plCurrent"); // NOI18N

    jLabel1.setText(resourceMap.getString("lbDownload.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jLabel2.setText(resourceMap.getString("lbUpload.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jLabel3.setText(resourceMap.getString("lbAddedFiles.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jLabel4.setText(resourceMap.getString("lbSesCount.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jLabel5.setText(resourceMap.getString("lbActiv.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    lbDowloadC.setText(resourceMap.getString("lbDowloadC.text")); // NOI18N
    lbDowloadC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbDowloadC.setName("lbDowloadC"); // NOI18N
    lbDowloadC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbUploadC.setText(resourceMap.getString("lbUploadC.text")); // NOI18N
    lbUploadC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbUploadC.setName("lbUploadC"); // NOI18N
    lbUploadC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbAddedFileC.setText(resourceMap.getString("lbAddedFileC.text")); // NOI18N
    lbAddedFileC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbAddedFileC.setName("lbAddedFileC"); // NOI18N
    lbAddedFileC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbSessionC.setText(resourceMap.getString("lbSessionC.text")); // NOI18N
    lbSessionC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbSessionC.setName("lbSessionC"); // NOI18N
    lbSessionC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbActivityC.setText(resourceMap.getString("lbActivityC.text")); // NOI18N
    lbActivityC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbActivityC.setName("lbActivityC"); // NOI18N
    lbActivityC.setPreferredSize(new java.awt.Dimension(60, 15));

    javax.swing.GroupLayout plCurrentLayout = new javax.swing.GroupLayout(plCurrent);
    plCurrent.setLayout(plCurrentLayout);
    plCurrentLayout.setHorizontalGroup(plCurrentLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plCurrentLayout.createSequentialGroup().addContainerGap().addGroup(plCurrentLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(plCurrentLayout.createSequentialGroup()
                            .addGroup(plCurrentLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel5).addComponent(jLabel4))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(plCurrentLayout.createSequentialGroup()
                                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGap(54, 54, 54))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    plCurrentLayout.createSequentialGroup().addGroup(plCurrentLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
                                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 126,
                                                    Short.MAX_VALUE))
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED))))
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(plCurrentLayout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(plCurrentLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbUploadC, javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE)
                                            .addComponent(lbDowloadC, javax.swing.GroupLayout.DEFAULT_SIZE, 76,
                                                    Short.MAX_VALUE)))
                            .addGroup(plCurrentLayout.createSequentialGroup()
                                    .addComponent(lbAddedFileC, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                            Short.MAX_VALUE)
                                    .addContainerGap())
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    plCurrentLayout.createSequentialGroup().addGroup(plCurrentLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(lbActivityC, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                                    Short.MAX_VALUE)
                                            .addComponent(lbSessionC, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                                    Short.MAX_VALUE))
                                            .addContainerGap()))));
    plCurrentLayout.setVerticalGroup(plCurrentLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plCurrentLayout.createSequentialGroup()
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(lbDowloadC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 15,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(lbUploadC, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(lbAddedFileC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4).addComponent(lbSessionC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(lbActivityC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(22, Short.MAX_VALUE)));

    plInfo.add(plCurrent);

    plTotal.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("plTotal.border.title"))); // NOI18N
    plTotal.setName("plTotal"); // NOI18N

    jLabel6.setText(resourceMap.getString("lbDownload.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    jLabel7.setText(resourceMap.getString("lbUpload.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    jLabel8.setText(resourceMap.getString("lbAddedFiles.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jLabel9.setText(resourceMap.getString("lbSesCount.text")); // NOI18N
    jLabel9.setName("jLabel9"); // NOI18N

    jLabel10.setText(resourceMap.getString("lbActiv.text")); // NOI18N
    jLabel10.setName("jLabel10"); // NOI18N

    lbDowloadT.setText(resourceMap.getString("lbDowloadT.text")); // NOI18N
    lbDowloadT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbDowloadT.setName("lbDowloadT"); // NOI18N
    lbDowloadT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbUploadT.setText(resourceMap.getString("lbUploadT.text")); // NOI18N
    lbUploadT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbUploadT.setName("lbUploadT"); // NOI18N
    lbUploadT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbAddedFileT.setText(resourceMap.getString("lbAddedFileT.text")); // NOI18N
    lbAddedFileT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbAddedFileT.setName("lbAddedFileT"); // NOI18N
    lbAddedFileT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbSessionT.setText(resourceMap.getString("lbSessionT.text")); // NOI18N
    lbSessionT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbSessionT.setName("lbSessionT"); // NOI18N
    lbSessionT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbActivityT.setText(resourceMap.getString("lbActivityT.text")); // NOI18N
    lbActivityT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbActivityT.setName("lbActivityT"); // NOI18N
    lbActivityT.setPreferredSize(new java.awt.Dimension(60, 15));

    javax.swing.GroupLayout plTotalLayout = new javax.swing.GroupLayout(plTotal);
    plTotal.setLayout(plTotalLayout);
    plTotalLayout.setHorizontalGroup(plTotalLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTotalLayout.createSequentialGroup().addContainerGap()
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel10)
                            .addGroup(plTotalLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbDowloadT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbUploadT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbAddedFileT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbSessionT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbActivityT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    plTotalLayout.setVerticalGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTotalLayout.createSequentialGroup()
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(lbDowloadT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(lbUploadT, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8).addComponent(lbAddedFileT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9).addComponent(lbSessionT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10).addComponent(lbActivityT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(22, Short.MAX_VALUE)));

    plInfo.add(plTotal);

    getContentPane().add(plInfo, java.awt.BorderLayout.CENTER);

    pack();
}

From source file:au.org.ala.delta.intkey.ui.AddOrEditDataIndexItemDialog.java

private void init() {
    ActionMap actionMap = Application.getInstance().getContext().getActionMap(this);
    ResourceMap resourceMap = Application.getInstance().getContext()
            .getResourceMap(AddOrEditDataIndexItemDialog.class);
    resourceMap.injectFields(this);

    _pnlMain = new JPanel();
    getContentPane().add(_pnlMain, BorderLayout.CENTER);

    _lblDescription = new JLabel(descriptionCaption);

    _txtFldDescription = new JTextField();
    _txtFldDescription.setColumns(10);//ww w.j  av a  2  s .c  om

    _btnBrowse = new JButton();
    _btnBrowse.setAction(actionMap.get("AddOrEditDataIndexItemDialog_Browse"));

    _lblFilePath = new JLabel(pathCaption);

    _txtFldFilePath = new JTextField();
    _txtFldFilePath.setColumns(10);
    GroupLayout gl__pnlMain = new GroupLayout(_pnlMain);
    gl__pnlMain.setHorizontalGroup(gl__pnlMain.createParallelGroup(Alignment.LEADING).addGroup(gl__pnlMain
            .createSequentialGroup().addContainerGap()
            .addGroup(gl__pnlMain.createParallelGroup(Alignment.LEADING, false)
                    .addComponent(_lblFilePath, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE)
                    .addComponent(_lblDescription, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE))
            .addPreferredGap(ComponentPlacement.RELATED)
            .addGroup(gl__pnlMain.createParallelGroup(Alignment.TRAILING)
                    .addGroup(gl__pnlMain.createSequentialGroup()
                            .addComponent(_txtFldFilePath, GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE)
                            .addPreferredGap(ComponentPlacement.RELATED).addComponent(_btnBrowse))
                    .addComponent(_txtFldDescription, GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE))
            .addContainerGap()));
    gl__pnlMain.setVerticalGroup(gl__pnlMain.createParallelGroup(Alignment.LEADING)
            .addGroup(gl__pnlMain.createSequentialGroup().addContainerGap()
                    .addGroup(gl__pnlMain.createParallelGroup(Alignment.BASELINE).addComponent(_lblDescription)
                            .addComponent(_txtFldDescription, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGap(18)
                    .addGroup(gl__pnlMain.createParallelGroup(Alignment.BASELINE)
                            .addComponent(_btnBrowse, GroupLayout.PREFERRED_SIZE, 20,
                                    GroupLayout.PREFERRED_SIZE)
                            .addComponent(_txtFldFilePath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE)
                            .addComponent(_lblFilePath, GroupLayout.PREFERRED_SIZE, 20,
                                    GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(25, Short.MAX_VALUE)));
    _pnlMain.setLayout(gl__pnlMain);

    _pnlButtons = new JPanel();
    getContentPane().add(_pnlButtons, BorderLayout.SOUTH);

    _btnOk = new JButton();
    _btnOk.setAction(actionMap.get("AddOrEditDataIndexItemDialog_OK"));
    _pnlButtons.add(_btnOk);

    _btnCancel = new JButton();
    _btnCancel.setAction(actionMap.get("AddOrEditDataIndexItemDialog_Cancel"));
    _pnlButtons.add(_btnCancel);
}

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

    buttonGroup1 = new javax.swing.ButtonGroup();
    jPanelBackground = new javax.swing.JPanel();
    picFingerprint = new javax.swing.JLabel();
    jPanelConsole = new javax.swing.JPanel();
    txtConsole = new javax.swing.JTextField();
    lblConsole = new javax.swing.JLabel();
    btnSave = new javax.swing.JButton();
    btnCancel = new javax.swing.JButton();
    jPanelLog = new javax.swing.JPanel();
    JScrollPane1 = new javax.swing.JScrollPane();
    txtLog = new javax.swing.JTextArea();
    lblLog = new javax.swing.JLabel();
    btnRead = new javax.swing.JButton();
    lblStatus = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Almacenar Huellas");
    setResizable(false);

    jPanelBackground.setBackground(new java.awt.Color(238, 241, 245));

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

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

    txtConsole.setEditable(false);
    txtConsole.setForeground(new java.awt.Color(136, 136, 136));
    txtConsole.setText("Consola de estado");

    lblConsole.setForeground(new java.awt.Color(136, 136, 136));
    lblConsole.setText("Consola:");

    javax.swing.GroupLayout jPanelConsoleLayout = new javax.swing.GroupLayout(jPanelConsole);
    jPanelConsole.setLayout(jPanelConsoleLayout);
    jPanelConsoleLayout.setHorizontalGroup(jPanelConsoleLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsoleLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelConsoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtConsole).addGroup(jPanelConsoleLayout.createSequentialGroup()
                                    .addComponent(lblConsole).addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanelConsoleLayout.setVerticalGroup(jPanelConsoleLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsoleLayout.createSequentialGroup()
                    .addGap(5, 5, 5).addComponent(lblConsole)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(txtConsole, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(15, Short.MAX_VALUE)));

    btnSave.setText("Guardar");
    btnSave.setEnabled(false);
    btnSave.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnSaveActionPerformed(evt);
        }
    });

    btnCancel.setText("Cancelar");
    btnCancel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCancelActionPerformed(evt);
        }
    });

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

    txtLog.setEditable(false);
    txtLog.setColumns(20);
    txtLog.setForeground(new java.awt.Color(168, 168, 168));
    txtLog.setRows(5);
    JScrollPane1.setViewportView(txtLog);

    lblLog.setForeground(new java.awt.Color(136, 136, 136));
    lblLog.setText("Estado:");

    javax.swing.GroupLayout jPanelLogLayout = new javax.swing.GroupLayout(jPanelLog);
    jPanelLog.setLayout(jPanelLogLayout);
    jPanelLogLayout.setHorizontalGroup(jPanelLogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLogLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelLogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(JScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE)
                            .addGroup(jPanelLogLayout.createSequentialGroup().addComponent(lblLog).addGap(0, 0,
                                    Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanelLogLayout.setVerticalGroup(jPanelLogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLogLayout.createSequentialGroup().addContainerGap().addComponent(lblLog)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(JScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                    .addContainerGap()));

    btnRead.setText("Leer Huella");
    btnRead.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnReadActionPerformed(evt);
        }
    });

    lblStatus.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    lblStatus.setText("Intentos");

    javax.swing.GroupLayout jPanelBackgroundLayout = new javax.swing.GroupLayout(jPanelBackground);
    jPanelBackground.setLayout(jPanelBackgroundLayout);
    jPanelBackgroundLayout.setHorizontalGroup(jPanelBackgroundLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup()
                                    .addComponent(picFingerprint, javax.swing.GroupLayout.PREFERRED_SIZE, 250,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(jPanelBackgroundLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanelConsole, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jPanelLog, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addComponent(lblStatus)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btnRead)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnSave)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnCancel)))
                    .addContainerGap()));
    jPanelBackgroundLayout.setVerticalGroup(jPanelBackgroundLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup()
                                    .addComponent(jPanelConsole, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jPanelLog, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(picFingerprint, javax.swing.GroupLayout.PREFERRED_SIZE, 300,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnCancel).addComponent(btnSave).addComponent(btnRead)
                            .addComponent(lblStatus))
                    .addContainerGap()));

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

    pack();
}

From source file:de.rub.nds.burp.espresso.gui.attacker.saml.UIDTDAttack.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  2s.  c o m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    sysPubButtonGroup = new javax.swing.ButtonGroup();
    encodingButtonGroup = new javax.swing.ButtonGroup();
    modifyButton = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    recursiveEntitieTextField = new javax.swing.JTextField();
    entityReferencesTextField = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    targetFileTextField = new javax.swing.JTextField();
    helperURLTextField = new javax.swing.JTextField();
    attackeListenerTextField = new javax.swing.JTextField();
    jScrollPane3 = new javax.swing.JScrollPane();
    targetFileList = new javax.swing.JList<>();
    dtdComboBox = new javax.swing.JComboBox<>();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    adjustDTDButton = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    enableEditoringCheckbox = new javax.swing.JCheckBox();
    publicRadioButton = new javax.swing.JRadioButton();
    systemRadioButton = new javax.swing.JRadioButton();
    autoModifyCheckbox = new javax.swing.JCheckBox();
    utf7RadioButton = new javax.swing.JRadioButton();
    utf8RadioButton = new javax.swing.JRadioButton();
    utf16RadioButton = new javax.swing.JRadioButton();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    descriptionTextArea = new javax.swing.JTextArea();

    modifyButton.setText("Modify");
    modifyButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            modifyButtonActionPerformed(evt);
        }
    });

    jLabel3.setText("Recursive Entities:");

    jLabel4.setText("Entity References:");

    recursiveEntitieTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    recursiveEntitieTextField.setText("4");
    recursiveEntitieTextField.setToolTipText("Enter numbers only.");
    recursiveEntitieTextField.setEnabled(false);

    entityReferencesTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    entityReferencesTextField.setText("10");
    entityReferencesTextField.setToolTipText("Enter numbers only.");
    entityReferencesTextField.setEnabled(false);

    jLabel5.setText("Target File:");

    jLabel6.setText("Helper-URL:");

    jLabel7.setText("Attacker Listener:");

    targetFileTextField.setText("file:///etc/hostname");
    targetFileTextField.setEnabled(false);

    helperURLTextField.setText("http://publicServer.com/helperDTD.dtd");
    helperURLTextField.setEnabled(false);

    attackeListenerTextField.setText("http://publicServer.com/");
    attackeListenerTextField.setEnabled(false);

    targetFileList.setModel(new javax.swing.AbstractListModel<String>() {
        String[] strings = { "file:///etc/hostname", "file:///dev/urandom", "file:///sys/power/image_size" };

        public int getSize() {
            return strings.length;
        }

        public String getElementAt(int i) {
            return strings[i];
        }
    });
    targetFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    targetFileList.setEnabled(false);
    targetFileList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            targetFileListValueChanged(evt);
        }
    });
    jScrollPane3.setViewportView(targetFileList);

    dtdComboBox.setMaximumRowCount(10);
    dtdComboBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dtdComboBoxActionPerformed(evt);
        }
    });

    jLabel8.setText("Select DTD:");

    jLabel9.setText("Selected DTD: ");

    adjustDTDButton.setText("Adjust");
    adjustDTDButton.setEnabled(false);
    adjustDTDButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            adjustDTDButtonActionPerformed(evt);
        }
    });

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

    enableEditoringCheckbox.setText("Enable editing");
    enableEditoringCheckbox.setToolTipText("Discards manual changes");
    enableEditoringCheckbox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            enableEditoringCheckboxActionPerformed(evt);
        }
    });

    sysPubButtonGroup.add(publicRadioButton);
    publicRadioButton.setText("PUBLIC");
    publicRadioButton.setEnabled(false);

    sysPubButtonGroup.add(systemRadioButton);
    systemRadioButton.setText("SYSTEM");
    systemRadioButton.setEnabled(false);

    autoModifyCheckbox.setText("Auto modify");
    autoModifyCheckbox.setToolTipText("Automatic update of SAML message with DTD vector.");
    autoModifyCheckbox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            autoModifyCheckboxActionPerformed(evt);
        }
    });

    encodingButtonGroup.add(utf7RadioButton);
    utf7RadioButton.setText("UTF-7");

    encodingButtonGroup.add(utf8RadioButton);
    utf8RadioButton.setText("UTF-8");

    encodingButtonGroup.add(utf16RadioButton);
    utf16RadioButton.setText("UTF-16");

    jLabel1.setText("Encoding:");

    jLabel2.setText("Description:");

    descriptionTextArea.setEditable(false);
    descriptionTextArea.setColumns(20);
    descriptionTextArea.setLineWrap(true);
    descriptionTextArea.setRows(3);
    descriptionTextArea.setWrapStyleWord(true);
    descriptionTextArea.setBorder(null);
    jScrollPane1.setViewportView(descriptionTextArea);

    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)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(modifyButton))
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel3).addComponent(jLabel4))
                            .addGap(1, 1, 1)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(adjustDTDButton)
                                    .addComponent(entityReferencesTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 78,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(recursiveEntitieTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 78,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(55, 55, 55)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addGroup(layout.createSequentialGroup().addGap(44, 44, 44)
                                                    .addComponent(jLabel6))
                                            .addGroup(layout.createSequentialGroup().addGap(47, 47, 47)
                                                    .addComponent(jLabel5)))
                                    .addComponent(jLabel7))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(attackeListenerTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 260,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(targetFileTextField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 260,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(helperURLTextField,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 260,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    218, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(55, 55, 55)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(utf16RadioButton).addComponent(jLabel1)
                                    .addComponent(utf7RadioButton).addComponent(utf8RadioButton))
                            .addGap(0, 102, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel8)
                                    .addGroup(layout.createSequentialGroup().addComponent(jLabel9)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(enableEditoringCheckbox)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(autoModifyCheckbox))
                                    .addGroup(layout.createSequentialGroup().addComponent(systemRadioButton)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(publicRadioButton))
                                    .addComponent(dtdComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 666,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18).addGroup(
                                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup().addComponent(jLabel2)
                                                    .addGap(0, 0, 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.LEADING)
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(utf7RadioButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(utf8RadioButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(utf16RadioButton))
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel3)
                                            .addComponent(recursiveEntitieTextField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel5).addComponent(targetFileTextField,
                                                    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(jLabel4)
                                                    .addComponent(entityReferencesTextField,
                                                            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(adjustDTDButton).addComponent(jLabel6)
                                                    .addComponent(helperURLTextField,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 61,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel7).addComponent(attackeListenerTextField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(3, 3, 3)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel8).addComponent(jLabel2))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(dtdComboBox, 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(publicRadioButton).addComponent(systemRadioButton))
                                    .addGap(1, 1, 1)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel9).addComponent(enableEditoringCheckbox)
                                            .addComponent(autoModifyCheckbox))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(modifyButton).addContainerGap()));
}

From source file:userinterface.AdministratorWorkArea.TopMedicineJPanel.java

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

    jScrollPane1 = new javax.swing.JScrollPane();
    productTable = new javax.swing.JTable();
    jLabel1 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();
    backJButton = new javax.swing.JButton();

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

    }, new String[] { "Medicine Name", "Quantity" }));
    jScrollPane1.setViewportView(productTable);

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
    jLabel1.setText("Most Popular Medicine");

    jButton1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    jButton1.setText("Bar Chart");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    backJButton.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    backJButton.setText("<< Back");
    backJButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            backJButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(255, 255, 255).addComponent(jLabel1)
                    .addContainerGap(297, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 154,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 592,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup().addGap(51, 51, 51).addComponent(backJButton)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addGap(96, 96, 96)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 136,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(93, 93, 93).addComponent(jButton1).addGap(77, 77, 77).addComponent(backJButton)
                    .addContainerGap(87, Short.MAX_VALUE)));
}

From source file:com.ibm.soatf.gui.SOATestingFrameworkGUI.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//from w  w w.ja v a 2 s  .  co m
 * only modification is added here is 
 * <code>
 *         jlInterfaces.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
    public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
        jlInterfacesValueChanged(evt);
 *</code>
 * this is used to display interface details when a particular interface is clicked.
 */
@SuppressWarnings({ "unchecked", "Convert2Diamond" })
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    btnClearLog = new javax.swing.JButton();
    btnExecute = new javax.swing.JButton();
    cbEnvironment = new javax.swing.JComboBox();
    jLabel1 = new javax.swing.JLabel();
    jSplitPane3 = new javax.swing.JSplitPane();
    jSplitPane5 = new javax.swing.JSplitPane();
    jSplitPane6 = new javax.swing.JSplitPane();
    jPanel2 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jlInterfaces = new javax.swing.JList<GUIObjects.Interface>();
    jPanel3 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    jtInterfaceDetails = new javax.swing.JTree(new DefaultTreeModel(null));
    jPanel4 = new javax.swing.JPanel();
    jScrollPane3 = new javax.swing.JScrollPane();
    jtResults = new javax.swing.JTable();
    jPanel6 = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    jScrollPane6 = new javax.swing.JScrollPane();
    jtaLogging = new javax.swing.JTextArea();
    btnReloadXMLConfiguration = new javax.swing.JButton();
    btnExportLog = new javax.swing.JButton();
    btnValidateConfig = new javax.swing.JButton();
    btnStopExecution = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("SOA Testing Framework");

    btnClearLog.setText("Clear Log");
    btnClearLog.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnClearLogActionPerformed(evt);
        }
    });

    btnExecute.setText("Execute");
    btnExecute.setEnabled(false);
    btnExecute.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnExecuteActionPerformed(evt);
        }
    });

    cbEnvironment.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            cbEnvironmentItemStateChanged(evt);
        }
    });

    jLabel1.setText("Environment:");

    jSplitPane3.setDividerSize(3);
    jSplitPane3.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    jSplitPane5.setDividerSize(3);

    jSplitPane6.setDividerLocation(300);
    jSplitPane6.setDividerSize(3);

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Interfaces"));

    jlInterfaces.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    jlInterfaces.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            jlInterfacesValueChanged(evt);
        }
    });
    jScrollPane1.setViewportView(jlInterfaces);

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout
            .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE));

    jSplitPane6.setLeftComponent(jPanel2);

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Interface Details"));

    javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root");
    jtInterfaceDetails.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
    jtInterfaceDetails.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
        public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
            jtInterfaceDetailsValueChanged(evt);
        }
    });
    jScrollPane2.setViewportView(jtInterfaceDetails);

    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.DEFAULT_SIZE, 360, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)
                    .addGap(0, 0, 0)));

    jSplitPane6.setRightComponent(jPanel3);

    jSplitPane5.setLeftComponent(jSplitPane6);

    jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Results"));

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

    }, new String[] { "Operation", "Message", "Status" }) {
        boolean[] canEdit = new boolean[] { false, false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jtResults.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentResized(java.awt.event.ComponentEvent evt) {
            jtResultsComponentResized(evt);
        }
    });
    jScrollPane3.setViewportView(jtResults);

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout
            .setHorizontalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(operationProgressBar, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                    .addComponent(operationProgressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 1, Short.MAX_VALUE)));

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout
            .setHorizontalGroup(
                    jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 456,
                                    Short.MAX_VALUE)
                            .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel6,
                            javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    jSplitPane5.setRightComponent(jPanel4);

    jSplitPane3.setLeftComponent(jSplitPane5);

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

    jtaLogging.setColumns(20);
    jtaLogging.setRows(5);
    jScrollPane6.setViewportView(jtaLogging);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 1137, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE));

    jSplitPane3.setRightComponent(jPanel1);

    btnReloadXMLConfiguration.setText("Reload XML Configuration");
    btnReloadXMLConfiguration.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnReloadXMLConfigurationActionPerformed(evt);
        }
    });

    btnExportLog.setText("Export LOG");
    btnExportLog.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnExportLogActionPerformed(evt);
        }
    });

    btnValidateConfig.setText("Validate Config");
    btnValidateConfig.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnValidateConfigActionPerformed(evt);
        }
    });

    btnStopExecution.setText("STOP");
    btnStopExecution.setEnabled(false);
    btnStopExecution.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnStopExecutionActionPerformed(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)
                            .addGroup(layout.createSequentialGroup().addComponent(btnClearLog)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(btnReloadXMLConfiguration)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnExportLog)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnValidateConfig)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btnStopExecution)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cbEnvironment, javax.swing.GroupLayout.PREFERRED_SIZE, 206,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnExecute))
                            .addComponent(jSplitPane3, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap().addComponent(jSplitPane3)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnExecute)
                            .addComponent(cbEnvironment, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1).addComponent(btnClearLog)
                            .addComponent(btnReloadXMLConfiguration).addComponent(btnExportLog)
                            .addComponent(btnValidateConfig).addComponent(btnStopExecution))
                    .addContainerGap()));

    pack();
}

From source file:mod.steps.stepmode.threads.forms.TransitionsChooser.java

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

    buttonAccept = new javax.swing.JButton();
    tabbledPane = new javax.swing.JTabbedPane();
    jPanel1 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    listTransitionsCombinations = new javax.swing.JList();
    jLabel1 = new javax.swing.JLabel();
    labelInfo = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    tableTransitionsRepetitions = new javax.swing.JTable();
    buttonCombinations = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    jScrollPane3 = new javax.swing.JScrollPane();
    areaTransitionsSet = new javax.swing.JTextArea();

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

    buttonAccept.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
    buttonAccept.setText("Accept");
    buttonAccept.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonAcceptActionPerformed(evt);
        }
    });

    tabbledPane.setEnabled(false);

    listTransitionsCombinations.setFont(new java.awt.Font("Courier New", 0, 14)); // NOI18N
    listTransitionsCombinations.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            listTransitionsCombinationsMouseClicked(evt);
        }
    });
    jScrollPane2.setViewportView(listTransitionsCombinations);

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel1.setText("Info:");

    labelInfo.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
    labelInfo.setText("Select transitions set by clicking on it and choosing Accept.");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane2)
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(labelInfo).addGap(0, 78, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(labelInfo))
                    .addGap(18, 18, 18).addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 122,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(60, 60, 60)));

    tabbledPane.addTab("", jPanel1);

    tableTransitionsRepetitions.setFont(new java.awt.Font("Courier New", 0, 12)); // NOI18N
    tableTransitionsRepetitions.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null }, { null, null }, { null, null }, { null, null } },
            new String[] { "Title 1", "Title 2" }));
    jScrollPane1.setViewportView(tableTransitionsRepetitions);

    tabbledPane.addTab("", jScrollPane1);

    buttonCombinations.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
    buttonCombinations.setText("<<< Back");
    buttonCombinations.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonCombinationsActionPerformed(evt);
        }
    });

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Output transitions set",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N

    areaTransitionsSet.setEditable(false);
    areaTransitionsSet.setColumns(20);
    areaTransitionsSet.setFont(new java.awt.Font("Courier New", 0, 14)); // NOI18N
    areaTransitionsSet.setLineWrap(true);
    areaTransitionsSet.setRows(4);
    areaTransitionsSet.setToolTipText("");
    areaTransitionsSet.setWrapStyleWord(true);
    jScrollPane3.setViewportView(areaTransitionsSet);

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout
            .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup().addGap(4, 4, 4).addComponent(jScrollPane3,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 440,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addGap(3, 3, 3).addComponent(jScrollPane3,
                    javax.swing.GroupLayout.PREFERRED_SIZE, 60, 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)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tabbledPane)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(buttonAccept, javax.swing.GroupLayout.PREFERRED_SIZE, 88,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(buttonCombinations)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addComponent(tabbledPane, javax.swing.GroupLayout.PREFERRED_SIZE, 204,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(buttonAccept, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(buttonCombinations, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                                    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./*from w  w w . j a  v a2s.  c o 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:com.mirth.connect.client.ui.LoginPanel.java

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

    loginMain = new javax.swing.JPanel();
    closeButton = new javax.swing.JButton();
    loginButton = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();
    serverName = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    mirthHeadingPanel2 = new com.mirth.connect.client.ui.MirthHeadingPanel();
    jLabel2 = new javax.swing.JLabel();
    username = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    password = new javax.swing.JPasswordField();
    mirthCorpImage = new javax.swing.JLabel();
    errorPane = new javax.swing.JScrollPane();
    errorTextArea = new javax.swing.JTextArea();
    loggingIn = new javax.swing.JPanel();
    mirthHeadingPanel1 = new com.mirth.connect.client.ui.MirthHeadingPanel();
    jLabel5 = new javax.swing.JLabel();
    loginProgress = new javax.swing.JProgressBar();
    status = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    mirthCorpImage1 = new javax.swing.JLabel();
    placeholderButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Mirth Connect - Login");
    setResizable(false);

    loginMain.setBackground(new java.awt.Color(255, 255, 255));
    loginMain.setName(""); // NOI18N

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

    loginButton.setText("Login");
    loginButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loginButtonActionPerformed(evt);
        }
    });

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

    jLabel1.setText("Server:");

    jLabel3.setText("Username:");

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    jLabel2.setForeground(new java.awt.Color(255, 255, 255));
    jLabel2.setText("Mirth Connect Login");

    javax.swing.GroupLayout mirthHeadingPanel2Layout = new javax.swing.GroupLayout(mirthHeadingPanel2);
    mirthHeadingPanel2.setLayout(mirthHeadingPanel2Layout);
    mirthHeadingPanel2Layout.setHorizontalGroup(
            mirthHeadingPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel2Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
                            .addContainerGap()));
    mirthHeadingPanel2Layout.setVerticalGroup(
            mirthHeadingPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel2Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
                            .addContainerGap()));

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

    jLabel6.setText("Password:");

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

    mirthCorpImage.setText(" ");

    errorPane.setBorder(null);
    errorPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    errorPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);

    errorTextArea.setColumns(20);
    errorTextArea.setEditable(false);
    errorTextArea.setFont(new java.awt.Font("Tahoma", 0, 11));
    errorTextArea.setLineWrap(true);
    errorTextArea.setText(
            "There was an error connecting to the server at the specified address. Please verify that the server is up and running.");
    errorTextArea.setWrapStyleWord(true);
    errorTextArea.setEnabled(false);
    errorPane.setViewportView(errorTextArea);

    javax.swing.GroupLayout loginMainLayout = new javax.swing.GroupLayout(loginMain);
    loginMain.setLayout(loginMainLayout);
    loginMainLayout
            .setHorizontalGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(loginMainLayout
                            .createSequentialGroup().addContainerGap()
                            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 358,
                                    Short.MAX_VALUE)
                            .addContainerGap())
                    .addComponent(mirthHeadingPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 378,
                            Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            loginMainLayout.createSequentialGroup().addContainerGap()
                                    .addComponent(mirthCorpImage)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 235,
                                            Short.MAX_VALUE)
                                    .addComponent(loginButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(closeButton).addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            loginMainLayout.createSequentialGroup().addGap(51, 51, 51)
                                    .addGroup(loginMainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(loginMainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(serverName, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(password, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(username, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(51, 51, 51))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            loginMainLayout.createSequentialGroup().addContainerGap(57, Short.MAX_VALUE)
                                    .addComponent(errorPane, javax.swing.GroupLayout.PREFERRED_SIZE, 264,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(57, 57, 57)));

    loginMainLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { closeButton, loginButton });

    loginMainLayout.setVerticalGroup(loginMainLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, loginMainLayout.createSequentialGroup()
                    .addComponent(mirthHeadingPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 49,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(22, 22, 22)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(serverName,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(username,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(errorPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(closeButton).addComponent(loginButton).addComponent(mirthCorpImage))
                    .addContainerGap()));

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

    jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    jLabel5.setForeground(new java.awt.Color(255, 255, 255));
    jLabel5.setText("Mirth Connect Login");

    javax.swing.GroupLayout mirthHeadingPanel1Layout = new javax.swing.GroupLayout(mirthHeadingPanel1);
    mirthHeadingPanel1.setLayout(mirthHeadingPanel1Layout);
    mirthHeadingPanel1Layout.setHorizontalGroup(
            mirthHeadingPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 326,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(42, Short.MAX_VALUE)));
    mirthHeadingPanel1Layout.setVerticalGroup(
            mirthHeadingPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
                            .addContainerGap()));

    loginProgress.setDoubleBuffered(true);

    status.setText("Please wait: Logging in...");

    mirthCorpImage1.setText(" ");

    placeholderButton.setText("Placeholder");

    javax.swing.GroupLayout loggingInLayout = new javax.swing.GroupLayout(loggingIn);
    loggingIn.setLayout(loggingInLayout);
    loggingInLayout.setHorizontalGroup(loggingInLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mirthHeadingPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    loggingInLayout.createSequentialGroup().addContainerGap()
                            .addComponent(loginProgress, javax.swing.GroupLayout.DEFAULT_SIZE, 358,
                                    Short.MAX_VALUE)
                            .addContainerGap())
            .addGroup(loggingInLayout.createSequentialGroup().addContainerGap().addComponent(status)
                    .addContainerGap(247, Short.MAX_VALUE))
            .addGroup(loggingInLayout.createSequentialGroup().addContainerGap().addComponent(mirthCorpImage1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 268, Short.MAX_VALUE)
                    .addComponent(placeholderButton).addContainerGap())
            .addGroup(loggingInLayout.createSequentialGroup().addContainerGap()
                    .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
                    .addContainerGap()));
    loggingInLayout.setVerticalGroup(loggingInLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(loggingInLayout.createSequentialGroup()
                    .addComponent(mirthHeadingPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 49,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(45, 45, 45).addComponent(status)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(loginProgress, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loggingInLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(mirthCorpImage1).addComponent(placeholderButton))
                    .addContainerGap()));

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

    pack();
}