I assume you are talking about something like this:
The reason that createAndShowGUI() is static is because it's being called from a static method, main(
String[] args). You can not call non-static methods from a static method, so createAndShowGUI() has to be static.