示例#1
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jSplitPane1 = new javax.swing.JSplitPane();
    jPanel1 = new javax.swing.JPanel();
    m_jPanelLeft = new javax.swing.JScrollPane();
    m_jPanelRight = new javax.swing.JPanel();
    m_jPanelTitle = new javax.swing.JPanel();
    m_jTitle = new javax.swing.JLabel();
    m_jPanelContainer = new javax.swing.JPanel();

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

    jSplitPane1.setDividerLocation(200);

    jPanel1.setLayout(new java.awt.BorderLayout());
    jPanel1.add(m_jPanelLeft, java.awt.BorderLayout.CENTER);

    jSplitPane1.setLeftComponent(jPanel1);

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

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

    m_jTitle.setFont(new java.awt.Font("SansSerif", 1, 18));
    m_jTitle.setBorder(
        javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, java.awt.Color.darkGray),
            javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10)));
    m_jPanelTitle.add(m_jTitle, java.awt.BorderLayout.NORTH);

    m_jPanelRight.add(m_jPanelTitle, java.awt.BorderLayout.NORTH);

    m_jPanelContainer.setLayout(new java.awt.CardLayout());
    m_jPanelRight.add(m_jPanelContainer, java.awt.BorderLayout.CENTER);

    jSplitPane1.setRightComponent(m_jPanelRight);

    add(jSplitPane1, java.awt.BorderLayout.CENTER);
  } // </editor-fold>//GEN-END:initComponents
示例#2
0
 public void createDesiredBorder(JButton jbtn) {
   jbtn.setBorder(
       javax.swing.BorderFactory.createCompoundBorder(
           javax.swing.BorderFactory.createCompoundBorder(
               javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED),
               javax.swing.BorderFactory.createCompoundBorder(
                   javax.swing.BorderFactory.createMatteBorder(
                       2, 2, 2, 2, new java.awt.Color(0, 0, 0)),
                   javax.swing.BorderFactory.createBevelBorder(
                       javax.swing.border.BevelBorder.RAISED))),
           javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
 }
示例#3
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jSlider1 = new javax.swing.JSlider();
    jButton1 = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();

    setBorder(javax.swing.BorderFactory.createTitledBorder("Manual override"));

    jLabel1.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel1.setText("Device's status:");

    jLabel2.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel2.setText("Who are you?");

    jLabel3.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel3.setText("How annoyed where you that the device is offline?");

    jSlider1.setMajorTickSpacing(1);
    jSlider1.setMaximum(4);
    jSlider1.setMinorTickSpacing(1);
    jSlider1.setPaintLabels(true);
    jSlider1.setPaintTicks(true);
    jSlider1.setSnapToTicks(true);
    jSlider1.setValue(2);

    jButton1.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N
    jButton1.setText("Power on!");
    jButton1.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
          }
        });

    jLabel4.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/overruler/images/off.png"))); // NOI18N

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(
                                        layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                layout
                                                    .createSequentialGroup()
                                                    .add(
                                                        layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(jLabel2)
                                                            .add(jLabel1))
                                                    .add(0, 695, Short.MAX_VALUE))
                                            .add(
                                                layout
                                                    .createSequentialGroup()
                                                    .add(6, 6, 6)
                                                    .add(
                                                        layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(
                                                                jSlider1,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .add(
                                                                layout
                                                                    .createSequentialGroup()
                                                                    .add(jLabel3)
                                                                    .add(0, 282, Short.MAX_VALUE))
                                                            .add(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING,
                                                                jButton1,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)))))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(408, 408, 408)
                                    .add(jLabel4)
                                    .add(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(jLabel1)
                    .add(24, 24, 24)
                    .add(jLabel4)
                    .add(22, 22, 22)
                    .add(jLabel2)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 266, Short.MAX_VALUE)
                    .add(jLabel3)
                    .add(18, 18, 18)
                    .add(
                        jSlider1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(92, 92, 92)
                    .add(
                        jButton1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        69,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
  } // </editor-fold>//GEN-END:initComponents
示例#4
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed"
  // desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    connectionScroll = new javax.swing.JScrollPane();
    connectionTable = new javax.swing.JTable();
    jPanel3 = new javax.swing.JPanel();
    sequenceScroll = new javax.swing.JScrollPane();
    sequenceTextArea = new javax.swing.JTextArea();
    jPanel4 = new javax.swing.JPanel();
    annotationScroll = new javax.swing.JScrollPane();
    annotationTable = new javax.swing.JTable();
    legnedScroll = new javax.swing.JScrollPane();
    legendTextPane = new javax.swing.JTextPane();

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

    jPanel2.setPreferredSize(new java.awt.Dimension(500, 414));
    jPanel2.setRequestFocusEnabled(false);

    connectionScroll.setBorder(javax.swing.BorderFactory.createTitledBorder("Connections"));
    connectionScroll.setViewportView(connectionTable);

    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                connectionScroll,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                708,
                Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                connectionScroll,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                122,
                Short.MAX_VALUE));

    sequenceScroll.setBorder(javax.swing.BorderFactory.createTitledBorder("Sequences"));

    sequenceTextArea.setColumns(20);
    sequenceTextArea.setFont(new java.awt.Font("Courier New", 0, 13));
    sequenceTextArea.setLineWrap(true);
    sequenceTextArea.setRows(5);
    sequenceTextArea.setToolTipText(
        "<html>Enter single letter protein sequence here<p>\nUse $ to separate sequences<p>\nUse square bracket [ ] to enclose modified amino acid<p>\nWhite space will be ignored</html>");
    sequenceScroll.setViewportView(sequenceTextArea);

    annotationScroll.setBorder(javax.swing.BorderFactory.createTitledBorder("Annotations"));
    annotationScroll.setViewportView(annotationTable);

    legendTextPane.setBackground(new java.awt.Color(204, 204, 204));
    legendTextPane.setEditable(false);
    legendTextPane.setText("$   Sequence Separator\n[ ]  Modified Amino Acid");
    legnedScroll.setViewportView(legendTextPane);

    org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(
        jPanel4Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                legnedScroll,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                140,
                Short.MAX_VALUE)
            .add(
                annotationScroll,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                140,
                Short.MAX_VALUE));
    jPanel4Layout.setVerticalGroup(
        jPanel4Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel4Layout
                    .createSequentialGroup()
                    .add(
                        annotationScroll,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        311,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        legnedScroll,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        55,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));

    org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(
        jPanel3Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel3Layout
                    .createSequentialGroup()
                    .add(
                        sequenceScroll,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        562,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jPanel4,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
    jPanel3Layout.setVerticalGroup(
        jPanel3Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel4,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE)
            .add(
                sequenceScroll,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                372,
                Short.MAX_VALUE));

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel2,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                708,
                Short.MAX_VALUE)
            .add(
                jPanel3,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel1Layout
                    .createSequentialGroup()
                    .add(
                        jPanel3,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jPanel2,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        122,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));

    add(jPanel1, java.awt.BorderLayout.CENTER);
  } // </editor-fold>//GEN-END:initComponents
示例#5
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    m_jPanelTitle = new javax.swing.JPanel();
    m_jLblTitle = new javax.swing.JLabel();
    poweredby = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    m_jPanelContainer = new javax.swing.JPanel();
    m_jPanelLogin = new javax.swing.JPanel();
    jPanel4 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jPanel5 = new javax.swing.JPanel();
    m_jLogonName = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jPanel2 = new javax.swing.JPanel();
    jPanel8 = new javax.swing.JPanel();
    m_jClose = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    m_txtKeys = new javax.swing.JTextField();
    m_jPanelDown = new javax.swing.JPanel();
    panelTask = new javax.swing.JPanel();
    m_jHost = new javax.swing.JLabel();
    jPanel3 = new javax.swing.JPanel();

    setPreferredSize(new java.awt.Dimension(1024, 768));
    setLayout(new java.awt.BorderLayout());

    m_jPanelTitle.setBorder(
        javax.swing.BorderFactory.createMatteBorder(
            0, 0, 1, 0, javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")));
    m_jPanelTitle.setLayout(new java.awt.BorderLayout());

    m_jLblTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    m_jLblTitle.setText("Window.Title");
    m_jPanelTitle.add(m_jLblTitle, java.awt.BorderLayout.CENTER);

    poweredby.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/com/openbravo/images/poweredby.png"))); // NOI18N
    poweredby.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 5));
    m_jPanelTitle.add(poweredby, java.awt.BorderLayout.LINE_END);

    jLabel2.setPreferredSize(new java.awt.Dimension(142, 34));
    m_jPanelTitle.add(jLabel2, java.awt.BorderLayout.LINE_START);

    add(m_jPanelTitle, java.awt.BorderLayout.NORTH);

    m_jPanelContainer.setLayout(new java.awt.CardLayout());

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

    jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.Y_AXIS));

    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/com/openbravo/images/logo.png"))); // NOI18N
    jLabel1.setText(
        "<html><center>SysNeo POS es un software de punto de venta intuitivo, de f&aacute;cil uso e ideal para las PyMes Peruanas.<br>"
            + "Copyright \u00A9 2012-2014 SysNeo POS, <br>"
            + "http://www.sysneoconsulting.com/ptoventa<br>"
            + "<br>"
            + "SysNeo POS est&aacute; basado en Openbravo POS, sistema de codigo abierto que mantiene los derechos bajo los t&eacute;minos de la GNU General Public License mantenido por la Free Software Foundation.<br>"
            + "<br>"
            + "SysNeo POS es ejecutado bajo autorización de uso y/o licencia de SysNeo Consulting.<br>"
            + "<br>"
            + "SysNeo Consulting, empresa responsable de SysNeo POS. http://www.sysneoconsulting.com<br>"
            + "</center>");
    jLabel1.setAlignmentX(0.5F);
    jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    jLabel1.setMaximumSize(new java.awt.Dimension(800, 1024));
    jLabel1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jPanel4.add(jLabel1);

    m_jPanelLogin.add(jPanel4, java.awt.BorderLayout.CENTER);

    m_jLogonName.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
    m_jLogonName.setLayout(new java.awt.BorderLayout());

    jScrollPane1.setHorizontalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    jScrollPane1.setVerticalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    jScrollPane1.setPreferredSize(new java.awt.Dimension(510, 118));
    m_jLogonName.add(jScrollPane1, java.awt.BorderLayout.CENTER);

    jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 5));
    jPanel2.setLayout(new java.awt.BorderLayout());

    jPanel8.setLayout(new java.awt.GridLayout(0, 1, 5, 5));

    m_jClose.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/com/openbravo/images/exit.png"))); // NOI18N
    m_jClose.setText(AppLocal.getIntString("Button.Close")); // NOI18N
    m_jClose.setFocusPainted(false);
    m_jClose.setFocusable(false);
    m_jClose.setPreferredSize(new java.awt.Dimension(115, 35));
    m_jClose.setRequestFocusEnabled(false);
    m_jClose.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jCloseActionPerformed(evt);
          }
        });
    jPanel8.add(m_jClose);

    jPanel2.add(jPanel8, java.awt.BorderLayout.NORTH);

    jPanel1.setLayout(null);

    m_txtKeys.setPreferredSize(new java.awt.Dimension(0, 0));
    m_txtKeys.addKeyListener(
        new java.awt.event.KeyAdapter() {
          public void keyTyped(java.awt.event.KeyEvent evt) {
            m_txtKeysKeyTyped(evt);
          }
        });
    jPanel1.add(m_txtKeys);
    m_txtKeys.setBounds(0, 0, 0, 0);

    jPanel2.add(jPanel1, java.awt.BorderLayout.CENTER);

    m_jLogonName.add(jPanel2, java.awt.BorderLayout.LINE_END);

    jPanel5.add(m_jLogonName);

    m_jPanelLogin.add(jPanel5, java.awt.BorderLayout.SOUTH);

    m_jPanelContainer.add(m_jPanelLogin, "login");

    add(m_jPanelContainer, java.awt.BorderLayout.CENTER);

    m_jPanelDown.setBorder(
        javax.swing.BorderFactory.createMatteBorder(
            1, 0, 0, 0, javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")));
    m_jPanelDown.setLayout(new java.awt.BorderLayout());

    m_jHost.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/com/openbravo/images/display.png"))); // NOI18N
    m_jHost.setText("*Hostname");
    panelTask.add(m_jHost);

    m_jPanelDown.add(panelTask, java.awt.BorderLayout.LINE_START);
    m_jPanelDown.add(jPanel3, java.awt.BorderLayout.LINE_END);

    add(m_jPanelDown, java.awt.BorderLayout.SOUTH);
  } // </editor-fold>//GEN-END:initComponents
示例#6
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jPanel2 = new javax.swing.JPanel();
    usernameTextBox = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    passwordTextBox = new javax.swing.JPasswordField();
    buttonLogin = new javax.swing.JButton();
    buttonCancel = new javax.swing.JButton();
    backButton = new javax.swing.JButton();
    loginBannerLabel = new javax.swing.JLabel();
    loginIconLabel = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("SCHOOL MANAGEMENT SYSTEM");
    setAlwaysOnTop(true);
    setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
    setResizable(false);

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

    usernameTextBox.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            usernameTextBoxActionPerformed(evt);
          }
        });
    usernameTextBox.addKeyListener(
        new java.awt.event.KeyAdapter() {
          public void keyPressed(java.awt.event.KeyEvent evt) {
            usernameTextBoxKeyPressed(evt);
          }
        });

    jLabel1.setText("Username");

    jLabel2.setText("Password");

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

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

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

    backButton.setText("<< Back");
    backButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            backButtonActionPerformed(evt);
          }
        });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanel2Layout
                    .createSequentialGroup()
                    .addGroup(
                        jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                jPanel2Layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        buttonLogin,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        81,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(8, 8, 8))
                            .addGroup(
                                jPanel2Layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .addComponent(jLabel2))
                            .addGroup(
                                jPanel2Layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .addComponent(jLabel1)))
                    .addGap(8, 8, 8)
                    .addGroup(
                        jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                passwordTextBox,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                205,
                                Short.MAX_VALUE)
                            .addComponent(
                                usernameTextBox,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                205,
                                Short.MAX_VALUE)
                            .addGroup(
                                jPanel2Layout
                                    .createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(
                                        buttonCancel,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        92,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(
                                        backButton,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        93,
                                        Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanel2Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                usernameTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                29,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                passwordTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                27,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(buttonLogin)
                            .addComponent(backButton)
                            .addComponent(buttonCancel))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    loginBannerLabel.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/images/login.png"))); // NOI18N

    loginIconLabel.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/images/adminControl2.png"))); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(
                        loginBannerLabel,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        261,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(loginIconLabel)
                    .addContainerGap(14, Short.MAX_VALUE))
            .addGroup(
                layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(
                        layout
                            .createSequentialGroup()
                            .addContainerGap()
                            .addComponent(
                                jPanel2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(
                                javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(
                                loginIconLabel,
                                javax.swing.GroupLayout.Alignment.LEADING,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                loginBannerLabel,
                                javax.swing.GroupLayout.Alignment.LEADING,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE))
                    .addContainerGap(182, Short.MAX_VALUE))
            .addGroup(
                layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(
                        layout
                            .createSequentialGroup()
                            .addGap(86, 86, 86)
                            .addComponent(
                                jPanel2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(20, Short.MAX_VALUE))));

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

    jPanel3 = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    tbl_branch_locations = new org.jdesktop.swingx.JXTable();
    btn_new = new Button.Default();
    btn_add = new Button.Primary();
    btn_edit = new Button.Info();
    btn_delete = new Button.Warning();
    tf_search = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    tf_branch = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    tf_location = new javax.swing.JTextField();
    tf_branch_id = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jProgressBar1 = new javax.swing.JProgressBar();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

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

    jPanel1.setOpaque(false);

    jScrollPane2.setOpaque(false);

    tbl_branch_locations.setModel(
        new javax.swing.table.DefaultTableModel(
            new Object[][] {{}, {}, {}, {}, {}, {}, {}, {}, {}}, new String[] {}));

    tbl_branch_locations.setOpaque(false);
    tbl_branch_locations.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            tbl_branch_locationsMouseClicked(evt);
          }
        });
    jScrollPane2.setViewportView(tbl_branch_locations);

    btn_new.setText("New");
    btn_new.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_newActionPerformed(evt);
          }
        });

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

    btn_edit.setText("Update");
    btn_edit.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_editActionPerformed(evt);
          }
        });

    btn_delete.setText("Delete");
    btn_delete.setEnabled(false);
    btn_delete.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_deleteActionPerformed(evt);
          }
        });

    tf_search.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    tf_search.setHorizontalAlignment(javax.swing.JTextField.LEFT);
    tf_search.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            tf_searchActionPerformed(evt);
          }
        });

    jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel4.setText("Search:");

    jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel2.setText("Branch:");

    tf_branch.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    tf_branch.setHorizontalAlignment(javax.swing.JTextField.LEFT);
    tf_branch.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            tf_branchActionPerformed(evt);
          }
        });

    jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel3.setText("Location:");

    tf_location.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    tf_location.setHorizontalAlignment(javax.swing.JTextField.LEFT);

    tf_branch_id.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    tf_branch_id.setHorizontalAlignment(javax.swing.JTextField.CENTER);

    jLabel5.setText("No. of rows:");

    jLabel6.setText("0");

    jLabel7.setText("Status:");

    jProgressBar1.setString("");
    jProgressBar1.setStringPainted(true);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanel1Layout
                    .createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                jLabel3,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                62,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jLabel2,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(
                                                jPanel1Layout
                                                    .createSequentialGroup()
                                                    .addComponent(tf_branch)
                                                    .addGap(0, 0, 0)
                                                    .addComponent(
                                                        tf_branch_id,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        36,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(tf_location)))
                            .addComponent(
                                jScrollPane2,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                442,
                                Short.MAX_VALUE)
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(
                                        btn_new,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        87,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        btn_add,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        84,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        btn_edit,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        104,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        btn_delete,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        84,
                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        jLabel4,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        60,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        tf_search,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        378,
                                        Short.MAX_VALUE))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addComponent(jLabel5)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        jLabel6,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        65,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .addComponent(jLabel7)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        jProgressBar1,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(25, 25, 25)));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanel1Layout
                    .createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(
                                jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(tf_branch)
                                    .addComponent(
                                        tf_branch_id,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        25,
                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(
                                jLabel2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                25,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(1, 1, 1)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(tf_location)
                            .addComponent(
                                jLabel3,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                25,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                btn_add,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                30,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                btn_edit,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                30,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                btn_delete,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                30,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                btn_new,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                30,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                jLabel4,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                25,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                tf_search,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                25,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(
                        jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 251, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(
                                jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel6))
                            .addComponent(
                                jProgressBar1,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                12,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(25, 25, 25)));

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(
        jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jPanel1,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(
        jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                jPanel1,
                javax.swing.GroupLayout.Alignment.TRAILING,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));

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

    pack();
  } // </editor-fold>//GEN-END:initComponents
  private void initComponents() {
    chipPlatesPanel = new javax.swing.JPanel();
    scannerInput = new javax.swing.JTextField();
    jScrollPane1 = new javax.swing.JScrollPane();
    failedPlatesList = new javax.swing.JList(new DefaultListModel());
    removeSelectedButton = new javax.swing.JButton();
    locationPanel = new javax.swing.JPanel();
    userIdLabel = new javax.swing.JLabel();
    userIDComboBox = new javax.swing.JComboBox();
    userIDComboBox.setName("userIDComboBox");
    scanLabel = new javax.swing.JLabel();
    scanDestination = new javax.swing.JTextField();
    jScrollPane2 = new javax.swing.JScrollPane();
    destinationsList = new javax.swing.JList(new DefaultListModel());
    completeUnloadingButton = new javax.swing.JButton();
    locationRemoveAllButton = new javax.swing.JButton();
    locationRemoveSelectedButton = new javax.swing.JButton();
    removeAllButton = new javax.swing.JButton();

    jScrollPane2 = new javax.swing.JScrollPane(destinationsList);

    setTitle(UNLOAD_DECK);
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    chipPlatesPanel.setBorder(
        javax.swing.BorderFactory.createTitledBorder(SCAN_UNFILLED_CHIP_PLATES));
    scannerInput.setName("inputScanner");
    scannerInput.setText(BLANK);
    scannerInput.addActionListener(new DialogScannerAction());
    jScrollPane1.setViewportView(failedPlatesList);

    removeSelectedButton.setText(REMOVE_SELECTED);
    removeSelectedButton.setName(REMOVE_SELECTED);
    removeSelectedButton.addActionListener(new RemoveSelectedItemAction());
    removeAllButton.setText(REMOVE_ALL);
    removeAllButton.setName(REMOVE_ALL);
    removeAllButton.addActionListener(new RemoveAllAction());
    populateUserList(userIDComboBox);

    org.jdesktop.layout.GroupLayout scanUnfilledSeedPlatesPanelLayout =
        new org.jdesktop.layout.GroupLayout(chipPlatesPanel);
    chipPlatesPanel.setLayout(scanUnfilledSeedPlatesPanelLayout);
    scanUnfilledSeedPlatesPanelLayout.setHorizontalGroup(
        scanUnfilledSeedPlatesPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                scanUnfilledSeedPlatesPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        scanUnfilledSeedPlatesPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jScrollPane1,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                246,
                                Short.MAX_VALUE)
                            .add(
                                scannerInput,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                246,
                                Short.MAX_VALUE)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                scanUnfilledSeedPlatesPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        removeAllButton,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        123,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        removeSelectedButton,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        117,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    scanUnfilledSeedPlatesPanelLayout.setVerticalGroup(
        scanUnfilledSeedPlatesPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                scanUnfilledSeedPlatesPanelLayout
                    .createSequentialGroup()
                    .add(
                        scannerInput,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jScrollPane1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        scanUnfilledSeedPlatesPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(removeSelectedButton)
                            .add(removeAllButton))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    locationPanel.setBorder(
        javax.swing.BorderFactory.createTitledBorder(SET_LOCATION_FOR_SEED_PLATES));
    userIdLabel.setText(USER_ID);
    scanLabel.setText(SCAN_DESTINATION);
    scanDestination.setText(BLANK);
    scanDestination.setName("scanDestination");
    scanDestination.addActionListener(new DestinationScanAction());
    locationRemoveAllButton.setText(REMOVE_ALL);
    locationRemoveAllButton.setName("Location_" + REMOVE_ALL);
    locationRemoveAllButton.addActionListener(new RemoveAllAction());
    locationRemoveSelectedButton.setText(REMOVE_SELECTED);
    locationRemoveSelectedButton.setName("Location_" + REMOVE_SELECTED);
    locationRemoveSelectedButton.addActionListener(new RemoveSelectedItemAction());

    org.jdesktop.layout.GroupLayout locationPanelLayout =
        new org.jdesktop.layout.GroupLayout(locationPanel);
    locationPanel.setLayout(locationPanelLayout);
    locationPanelLayout.setHorizontalGroup(
        locationPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                locationPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jScrollPane2,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                246,
                                Short.MAX_VALUE)
                            .add(
                                locationPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        locationPanelLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(scanLabel)
                                            .add(userIdLabel))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        locationPanelLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(userIDComboBox, 0, 157, Short.MAX_VALUE)
                                            .add(
                                                scanDestination,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                157,
                                                Short.MAX_VALUE)))
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                locationPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        locationRemoveAllButton,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        123,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(locationRemoveSelectedButton)))
                    .addContainerGap()));
    locationPanelLayout.setVerticalGroup(
        locationPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                locationPanelLayout
                    .createSequentialGroup()
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(userIdLabel)
                            .add(
                                userIDComboBox,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(scanLabel)
                            .add(
                                scanDestination,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        jScrollPane2,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        111,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(locationRemoveSelectedButton)
                            .add(locationRemoveAllButton))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    completeUnloadingButton.setText(COMPLETE_UNLOADING);
    completeUnloadingButton.setName("completeUnloadingButton");
    completeUnloadingButton.addActionListener(new CompleteUnloadAction());

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                locationPanel,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, completeUnloadingButton)
                            .add(
                                chipPlatesPanel,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        chipPlatesPanel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        217,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        locationPanel,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(completeUnloadingButton)
                    .addContainerGap()));
    pack();
  }