In my last posts I've worked the with Nashorn Javascript engine to create JavaFX application. It's great to work with JavaFX and Javascript, however, we can't forget that a boring part of the javascript code is that we have to import Java classes do be used and this can be a tedious things because you just want to script the view... See some examples of imports I had to use in my last projects var Scene = Java.type('javafx.scene.Scene') var VBox = Java.type('javafx.scene.layout.VBox') var Label = Java.type('javafx.scene.control.Label') var TextField = Java.type('javafx.scene.control.TextField') var PieChart = Java.type('javafx.scene.chart.PieChart') var TableView = Java.type('javafx.scene.control.TableView') var TableColumn = Java.type('javafx.scene.control.TableColumn') var PropertyValueFactory = Java.type('javafx.scene.control.cell.PropertyValueFactory') var SearchService = Java.type('org.jugvale.sent...
Blog about programming, client applications and intelligent use of AI. Talking about Machine Learning and AI before it was cool! We like to use JavaFX, Processing, Local execution of ML and LLM models and everything that is fun!