TeeChart for JavaFX

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)

TeeChart for JavaFX

Postby MHA » Fri May 25, 2012 1:14 pm

Hi

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

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

Re: TeeChart for JavaFX

Postby 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 ImagePlease read our Bug Fixing Policy
Yeray
Site Admin
Site Admin
 
Posts: 8290
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Re: TeeChart for JavaFX

Postby 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
MHA
Newbie
Newbie
 
Posts: 6
Joined: Wed Oct 03, 2007 12:00 am

Re: TeeChart for JavaFX

Postby 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 ImagePlease read our Bug Fixing Policy
Yeray
Site Admin
Site Admin
 
Posts: 8290
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Re: TeeChart for JavaFX

Postby 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
MHA
Newbie
Newbie
 
Posts: 6
Joined: Wed Oct 03, 2007 12:00 am

Re: TeeChart for JavaFX

Postby 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
Marc
Site Admin
Site Admin
 
Posts: 836
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona


Return to Java

Who is online

Users browsing this forum: No registered users and 0 guests