Does anyone know how to make a jbutton close a gui? I think it is like System.CLOSE(0);
but that didnt work. it also could be exitActionPerformed(evt);
, but that didn't work either. just the line of code will work.
EDIT: never mind guys. the answer was System.exit(0);
. thanks for the help though!