private void grblFirmwareSettingsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_grblFirmwareSettingsMenuItemActionPerformed
try {
if (this.controller == null) {
MainWindow.displayErrorDialog(Localization.getString("mainWindow.error.noFirmware"));
} else if (this.controller instanceof GrblController) {
GrblFirmwareSettingsDialog gfsd = new GrblFirmwareSettingsDialog(this, true, (GrblController)this.controller);
gfsd.setVisible(true);
} else {
MainWindow.displayErrorDialog(Localization.getString("mainWindow.error.notGrbl"));
}
} catch (Exception ex) {
MainWindow.displayErrorDialog(ex.getMessage());