GUI. Button opening another GUI
I recently started at a university where we have to spend the first 3 semesters learning a bit of Java. Now I have a project where I need to create a GUI for some classes about the weather.
My question is, we have a GUI made with WindowBuilder from Google with a main method in it. We want this GUI to have a button (which we already made) that opens up another window (that we made in another class with the WindowBuilder, wich means it also has a main method which probably needs to be removed).
How do you refer or get a button to open a new GUI class? Any help is appreciated!