Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

what does setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) is used for

Calling setDefaultCloseOperation(EXIT_ON_CLOSE) does exactly this. It causes the application to exit when the application receives a close window event from the operating system.
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+9 =