Skip to main content
100%

test javafx

✓ Published0🌍 Public
RRCura
Last edited Jan 11, 2013
Created on Jan 11, 2013

This example shows a JavaFX line chart rendered inside a Scala application, displaying 21 randomly generated x- and y-coordinate pairs on a shared axis. The chart uses `javafx.scene.chart.LineChart` with `NumberAxis` for both axes, while the UI includes a styled "Quitter" button that closes the primary stage when clicked. The data is produced with Scala’s `util.Random` and added to an `XYChart.Series`, though the series data is commented out, so the chart renders empty. The scene is set to 800 by 400 pixels with a whitesmoke background, demonstrating basic JavaFX stage, scene, and control setup from Scala.

AI-generated description

Similar vizzes