Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very nice! What about the other way around? #3

Closed
eduarddrenth opened this issue Jul 6, 2016 · 3 comments
Closed

Very nice! What about the other way around? #3

eduarddrenth opened this issue Jul 6, 2016 · 3 comments

Comments

@eduarddrenth
Copy link

I would like to be able to draw javafx nodes to a Graphics2D so I can draw these in frameworks that use Graphics2D. Sofar I do not have a solution, perhaps overriding JFXPanel#paintComponent is a good starting point.

@eduarddrenth
Copy link
Author

Works, only thing is I have to create a JFrame and set visible to true to trigger rendering. Also I have to instantiate a JFXPanel before instantiating JavaFX Chart nodes to get rid of "Toolkit not initialized".

Not realy flexible, but I don't see a better way for now

@jfree
Copy link
Owner

jfree commented Jul 7, 2016

There is a feature request for using a graphics layer in JavaFX along the lines of the way Swing uses Graphics2D. It's an excellent request, but has been given a very very low priority...I don't think it will be implemented.

https://bugs.openjdk.java.net/browse/JDK-8091853

@jfree jfree closed this as completed Jul 7, 2016
@eduarddrenth
Copy link
Author

Too bad, created https://github.com/eduarddrenth/JavaFXSceneToGraphics2D,
perhaps usefull for some

On Thu, Jul 7, 2016 at 10:41 AM, David Gilbert notifications@github.com
wrote:

Closed #3 #3.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AJulKNIjEWX37xexFgQ0KoqUc28uxE7Jks5qTLuegaJpZM4JGL9d
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants