private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        logger.log(Level.INFO, "=============== Downloading Application to Device " + device.toString() + " ===============");
        jProgressBar1.setIndeterminate(true);
        new Thread() {
            @Override
            public void run() {
                try {
                    logger.log(Level.INFO, "Application Installation Success: " + device.installApplication(jTextField1.getText()));
                    logger.log(Level.INFO, "===============/Downloading Application to Device " + device.toString() + "\\===============");
                    jProgressBar1.setIndeterminate(false);
                } catch (IOException | NullPointerException ex) {
                    logger.log(Level.ERROR, "An error occurred while attempting to install " + jTextField1.getText() + " to device (" + device.toString() + "): " + ex.toString() + "\n"
                            + "Error stack trace will be printed to console...");
                    ex.printStackTrace(System.err);
                }
                interrupt();
            }
        }.start();
    }//GEN-LAST:event_jButton2ActionPerformed