how to close JFrame using button and how to close all opened JFrame's, programmatically

Published: 13 July 2017
on channel: SL Coder Ego with Coding (SL Programmer)
10,363
29

In this video I have demonstrated, how to use dispose() method to to close JFrame using button and also how to close all the JFrame's or close program using System.exit(). (Using eclipse IDE)

To get all the codes that I used in this video, go to both links in the below:
https://gist.github.com/Blasanka/6fc5...
https://gist.github.com/Blasanka/e1a1...

description about dispose() in oracle doc - http://docs.oracle.com/javase/6/docs/...)

Description about System.exit(0) in oracle doc - http://docs.oracle.com/javase/6/docs/...)

about `exit status` - https://en.wikipedia.org/wiki/Exit_st...


On this page of the site you can watch the video online how to close JFrame using button and how to close all opened JFrame's, programmatically with a duration of hours minute second in good quality, which was uploaded by the user SL Coder Ego with Coding (SL Programmer) 13 July 2017, share the link with friends and acquaintances, this video has already been watched 10,363 times on youtube and it was liked by 29 viewers. Enjoy your viewing!