This content has been marked as final. Show 4 replies
You can not integrate a SWING object directly into a JavaFX application.
You can, however, integrate JavaFX in SWING.
I created a program which measures some values and displays these in a JavaFX chart. Unfortunately after adding about 200 data points the application freezes. I think the problem is the chart, which seems not to be designed for realtime charts.JavaFX charts are designed for realtime charts. See the Advanced charts section in the Ensemble application. The application provides executable examples with source code for displaying chart data in JavaFX. The chart data in the samples is modified in realtime, features many datapoints and executes with fluently at high speed.
Thanks I got it work.
if you still need to embed swing in javafx, use thingsFx classes.
SwingView class allow you to add swing component in a javafx node.
Pane pane = new Pane();
pane.getChildren().add(new SwingView(yourSwingComponent)) ;
Edited by: fabsav on 3-gen-2013 13.54