Hope this makes sense, I've tried to work it out but no luck as yet. So here's my question.
How do I go about calling a class who's function is to exit a JFrame from more than one JFrame?
In my code below I have a JFrame with 2 JButtons. One that opens another instance of a JFrame and a JButton that quits the application. I would be like to be able to place another JButton that also quits on the second JFrame using the class code below thereby avoiding having to write it twice. Is this possible.
I'm a complete noob so any hints etc much appreciated.
Having multiple base frames is a bad bad idea. Instead use a single JFrame and JDialog (check out JOptionPane for details on how to create and use modal dialogs)
Check out what JFrame#setVisible(boolean isVisible) does.