TeeChart for JavaFX

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
MHA
Newbie
Newbie
Posts: 6
Joined: Wed Oct 03, 2007 12:00 am

TeeChart for JavaFX

Post by MHA » Fri May 25, 2012 1:14 pm

Hi

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

Best Regards
Michi

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeChart for JavaFX

Post by Yeray » Mon May 28, 2012 12:52 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

MHA
Newbie
Newbie
Posts: 6
Joined: Wed Oct 03, 2007 12:00 am

Re: TeeChart for JavaFX

Post by MHA » Tue May 29, 2012 7:33 am

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeChart for JavaFX

Post by Yeray » Tue May 29, 2012 8:04 am

Hi Michi,

And what about the TeeChart Java SWT component?
http://docs.oracle.com/javafx/2/swt_int ... bility.htm
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

MHA
Newbie
Newbie
Posts: 6
Joined: Wed Oct 03, 2007 12:00 am

Re: TeeChart for JavaFX

Post by MHA » Tue May 29, 2012 12:13 pm

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

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TeeChart for JavaFX

Post by Marc » Tue Feb 06, 2018 12:09 pm

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
Steema Support

Post Reply