Related Articles:

  • Datenpannen-Kalkulator

    | tagged as

    For the lecture "IT security management" at the university my fellow students and me have developed a programm called "Datenpannen-Kalkulator". "Datenpanne" is the german word for "data loss" and means that you have lost some of your or your companies data. The programm calculates the costs of losing data or virus infections in your company based on some parameters like the number of affected clients or your industrial sector. The calculation is based on existing statistics in which companies were asked about the costs that were caused by security incidents. screenshot While it's obvious that the frontend of the application was developed with JavaFX (and the help of Afterburner.fx) the calculation logic is done with JavaFX too. All calculations were implemented with JavaFX's properties and databinding capabilities. At first this programming style is a little bit unusual because typically as a java delevoper you are used to implement calculations in an imperative style. But this style of programming has lots of advantages: It's relativelly easy to implement a "reactive" user interface. The calculation logic is based on properties that are bound to the values of the input fields and the charts that are visualizing the result are bound to the result properties. This means that a change in the input fields immediately leads to a change of the calculated result values and this leads to an update of the displayed chart data. There is no need for a "calculate" or "update" button. It's all done automatically. The code of this project can be found on github: