Monday, 15 March 2010

java - JavaFX application still running after close -



java - JavaFX application still running after close -

i'm having problem close javafx application, when click close button stage, application disappears if in task manager application still there without close. i've tried utilize code below forcefulness close main thread , childrens threads problem persists.

primarystage.setoncloserequest(new eventhandler<windowevent>() { @override public void handle(windowevent t) { platform.exit(); } });

[edited]

with questions javafx have noticed many newer developers facing problem managing threads. share have done simplify life managing threads on javafx. i've created asynctask class based on asynctask android same of android's in humble effective way. can find more info on github project

does application spawn kid threads? if have ensured terminate them (assuming they're not daemon threads)?

if application spawns non-daemon threads (and hence app) go on live on until such time kill process

java javafx-2 javafx

No comments:

Post a Comment