R
R
readical2015-07-28 08:34:31
Java
readical, 2015-07-28 08:34:31

How to exit JFrame without System.exit?

How to exit JFrame without System.exit?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
cthulhudx, 2015-07-28
@readical

You can simply call the dispose() method on the JFrame;
For example:
JFrame frame = new JFrame();
.....
frame.dispose();

D
Danil Antoshkin, 2015-07-28
@TwerTrue

It's not very clear what you want to do

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question