problems with manners in jframe java

0

Can someone help me with a small inconvenience? I'm doing this exercise but at the moment of agreeing to the dialog modal, the whole application is closed, what should I do to prevent this from happening? I want that when clicking on the modal accept the application will continue running.

    
asked by Appiweb 21.05.2018 в 05:16
source

1 answer

-1

Put the code in a Try { // the code that can execute the error } catch (Exception e) { // here apart from doing e.printStackTrace (); or //System.out.println (e.getMessage ()); You can also rederigir the application to another screen.

Alomejor is of no use what I say but the best thing you can do is look at the red sea of errors to figure out which is the one that causes the application to close

    
answered by 21.05.2018 в 05:47