I'm trying to create a JButton in 1 of my 2 JFrames which exits the top or current JFrame...
If I try:
System.exit(0);
The entire, currently running Java Virtual Machine, exits... (both frames)
I'm basically trying to get the same result as
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
does to the X button on the JFrame, onto another JButton...
Any way to do that?