Those exceptions tell you what's wrong.

In the first one, your variable theGUI (or the instance it references) does not have a setVisable() method. Did you perhaps mean setVisible()?
In both the...