Thursday 15 March 2012

Java secure application closing -



Java secure application closing -

is secure (and right) way close big java application this? let's user hits close action or exit.

appview av = new appview(); //suppose using mvc approach (frame frame : frame.getframes()) { av.dispose(); } system.exit(0);

depends on application. if have multithreaded environment, might want tell other threads stop (and give them time finish doing, or @ to the lowest degree save state if necessary). think daemon threads vs normal threads.

if didn't launch threads, think ok. again, if have window closing listeners installed, might doing things mess other frames. again: depends on application.

java

No comments:

Post a Comment