online

JavaFX – Monte Carlo option pricing applet

One of the things I like about JavaFX is that it can be deployed on a lot of platforms, and very easy btw. So in this post I’m going to use the Option Pricing code from previous posts to create a JavaFX application that runs both on desktop and as an applet without any code tweaks. So basically I’ve created two packages:

src/
—— com.breekmd.wordpress.java
———— Main.java
———— MainLayoutController.java
—— com.breekmd.wordpress.rsc
———— application.css
———— MainLayout.fxml

In the java package we’re going to store our Java code, and in the rsc we’re going to store our resources – the .fxml file and the .css file (which is empty on this occasion).

(more…)