Extracted Automaton Swing-specific functions to sub-class SwingAutomaton