Swing GUI works somehow