I would need help with the following: I am implementing an application in javafx, this application Is called through a click on a button. The problem is that when I close the application then I can not call it again. I have read that you can not call the Application.launch() method more than once. But I found something on the service class. The examples in the documentation page are not very clear. Anyone have an idea of how this could be done? Thank you.
http://docs.oracle.com/javafx/2/threads/jfxpub-threads.htm
my code:
private void jButton1ActionPerformed (java.awt.event.ActionEvent evt) {
WebMap n1 = new WebMap () / / application in javafx
n1.Lunch ();
}
WebMap class: / / javafx application
public void Lunch () {
Application.launch ();
}