public void run(String s) { s = check(s); if (s == null) return; if (machine.accept(s)) JOptionPane.showMessageDialog( null, Localized.getString("faAcceptString"), Localized.getString("automaton"), JOptionPane.INFORMATION_MESSAGE, null); else JOptionPane.showMessageDialog( null, Localized.getString("faRejectString"), Localized.getString("automaton"), JOptionPane.ERROR_MESSAGE, null); }