I have a JFrame which on instantiation calls a custom JDialog(Login). If login is successful i want that jFrame to be visible. And if user presses escape/cancel on that login dialog the whole application should be closed.
How can i do so...
Currently if i dispose dialog the jFrame gets visible.