Changed SURFInitDialog to be self-sufficient, not inside JFrame also added a static method getDialog() Made SURFInitFrame superfluous