Page 1 of 1

TeeChart for JavaFX

Posted: Fri May 25, 2012 1:14 pm
by 7665917
Hi

Will there be a TeeChart version for JavaFX? Anything planned?

Best Regards
Michi

Re: TeeChart for JavaFX

Posted: Mon May 28, 2012 12:52 pm
by yeray
Hi Michi,

I'm afraid we don't have plans to implement a native JavaFX version of TeeChart. However, I'm not sure if the actual Java version can be embedded into a JavaFX project.

Re: TeeChart for JavaFX

Posted: Tue May 29, 2012 7:33 am
by 7665917
Hi Yeray

Thank for for the answer.
Yes that may be a possibility, but i think they removed support for swing components in JavaFX 2.0...

Best Regards
Michi

Re: TeeChart for JavaFX

Posted: Tue May 29, 2012 8:04 am
by yeray
Hi Michi,

And what about the TeeChart Java SWT component?
http://docs.oracle.com/javafx/2/swt_int ... bility.htm

Re: TeeChart for JavaFX

Posted: Tue May 29, 2012 12:13 pm
by 7665917
Hi Yeray

Yes that would work (for swing too), but then you still have a mix of swing and JavaFX (where JavaFX is embedded).
I was looking for a way to eliminate swing completly once we switch over to JavaFX.

Best Regards
Michi

Re: TeeChart for JavaFX

Posted: Tue Feb 06, 2018 12:09 pm
by Marc
In response to recent questions on this subject, TeeChart is not a native JavaFX component. It may be included in a JavaFX project in the following way, using SwingNode:

Code: Select all

public class JavaFXChartApp extends Application {
    
    @Override
    public void start(Stage primaryStage) {

        javafx.embed.swing.SwingNode swingNode = new SwingNode();
        
        com.steema.teechart.TChart mChart = new com.steema.teechart.TChart();
        swingNode.setContent(mChart);
        
        mChart.getChart().getAspect().setView3D(false);
        
        ColorGrid cGrid = new ColorGrid(mChart.getChart());
        cGrid.fillSampleValues();
       
        StackPane root = new StackPane();
        root.getChildren().add(swingNode);
        
        Scene scene = new Scene(root, 800, 450);
        
        primaryStage.setTitle("TeeChart test form");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }
}
Regards,
Marc Meumann