private void updateDevice_fastbootButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateDevice_fastbootButtonActionPerformed
        String serial = deviceManager.getSelectedFastbootDevice();
        if (serial == null || serial.equals("")) {
            logger.log(Level.ERROR, "No device was found! Please connect and select an Android device booted into Fastboot-mode!");
            return;
        }
        
        final JFileChooser zipChooser = new JFileChooser();
        zipChooser.setDialogTitle(parser.parse("updateDevice:zipChooserTitle"));
        zipChooser.setDialogTitle(parser.parse("updateDevice:zipChooserApproveButton"));
        zipChooser.setFileFilter(new ZipFilter());
        int result = zipChooser.showOpenDialog(null);
        if (result == JOptionPane.OK_OPTION)
            new Thread() {
            @Override
            public void run() {
                UpdateDeviceDialog dialog = new UpdateDeviceDialog(parser.parse("updateDevice:updating"));
                dialog.setVisible(true);
                logger.log(Level.INFO, "Updating device " + selectedDevice.getSerial() + " using zip file: " + zipChooser.getSelectedFile().getAbsolutePath());
                try {
                    logger.log(Level.INFO, "ADB Output: " + adbController.getFastbootController().executeFastbootCommand(deviceManager.getSelectedFastbootDevice(), 
                                                                                                                     new String[]{"update", zipChooser.getSelectedFile().getAbsolutePath()}));
                } catch (IOException ex) {
                    logger.log(Level.ERROR, "An error occurred while updating the device " + deviceManager.getSelectedFastbootDevice() + "\n"
                            + "The error stack trace will be printed to the console...");
                    ex.printStackTrace(System.err);
                }
                dialog.setVisible(false);
                dialog.dispose();
                interrupt();
            }
        }.start();
    }//GEN-LAST:event_updateDevice_fastbootButtonActionPerformed