Java FX application onload event
I am implementing an application in java swing java fx with Google maps API. My problem is this, I need when the map is loaded runs a javascript. I've be reading of the method: webEngine.getLoadWorker().StateProperty().AddListener but does not work in my code. I wonder if anyone has any idea how to do this. I leave my code: SwingHtmlDemo.Java: public class SwingHtmlDemo { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { ApplicationFrame mainFrame = new ApplicationFrame(); mainFrame.setVisible(true); } }); } } /* Main window used