<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Pure Java Code to Call JavaFX Class</title>
	<atom:link href="http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/</link>
	<description>Review and comparison of information and opinions</description>
	<pubDate>Sat, 13 Mar 2010 18:30:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Raiden2010</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1463</link>
		<dc:creator>Raiden2010</dc:creator>
		<pubDate>Thu, 06 Aug 2009 04:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1463</guid>
		<description>Hi Henry!

Finally it is worked!Thank you for your kind explanation sir!Thank you very mach!</description>
		<content:encoded><![CDATA[<p>Hi Henry!</p>
<p>Finally it is worked!Thank you for your kind explanation sir!Thank you very mach!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raiden2010</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1460</link>
		<dc:creator>Raiden2010</dc:creator>
		<pubDate>Mon, 03 Aug 2009 07:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1460</guid>
		<description>Finally got some error!

Exception in thread "main" java.lang.ClassCastException: MyChart cannot be cast to innovation_java.JavaInterface
        at innovation_java.JavaTest.main(JavaTest.java:20)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

why?

&lt;BR&gt;
&lt;B&gt;
Hi Raiden2010,

I think you should create a JavaFX project and then use my code. The starting(main) class of your project is your java class (JavaTest.java). This should get rid of the compilation error. Please refer to my article for more info to build project with JavaFX and Java: &lt;BR&gt;

&lt;a href="http://www.javafxgame.com/calling-javafx-classes-from-java-code" rel="nofollow"&gt;Calling JavaFX Classes from Pure Java Code.&lt;/a&gt;

Rgds,
Henry
&lt;/B&gt;</description>
		<content:encoded><![CDATA[<p>Finally got some error!</p>
<p>Exception in thread &#8220;main&#8221; java.lang.ClassCastException: MyChart cannot be cast to innovation_java.JavaInterface<br />
        at innovation_java.JavaTest.main(JavaTest.java:20)<br />
Java Result: 1<br />
BUILD SUCCESSFUL (total time: 0 seconds)</p>
<p>why?</p>
<p>
<b><br />
Hi Raiden2010,</p>
<p>I think you should create a JavaFX project and then use my code. The starting(main) class of your project is your java class (JavaTest.java). This should get rid of the compilation error. Please refer to my article for more info to build project with JavaFX and Java: </p>
<p><a href="http://www.javafxgame.com/calling-javafx-classes-from-java-code" rel="nofollow">Calling JavaFX Classes from Pure Java Code.</a></p>
<p>Rgds,<br />
Henry<br />
</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raiden2010</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1459</link>
		<dc:creator>Raiden2010</dc:creator>
		<pubDate>Mon, 03 Aug 2009 06:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1459</guid>
		<description>Sorry Henry!I misunderstood your name!</description>
		<content:encoded><![CDATA[<p>Sorry Henry!I misunderstood your name!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raiden2010</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1458</link>
		<dc:creator>Raiden2010</dc:creator>
		<pubDate>Mon, 03 Aug 2009 06:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1458</guid>
		<description>hi Julien!

Great work Julien!But unfortunately I can't run your app,please help me!.Can you explain me how to configure netbeans to run this project?.Is this a java project or javafx project.I already add all jar files to project library.But I can't run the application in netbeans.Is it possible to run javafx file in java project?</description>
		<content:encoded><![CDATA[<p>hi Julien!</p>
<p>Great work Julien!But unfortunately I can&#8217;t run your app,please help me!.Can you explain me how to configure netbeans to run this project?.Is this a java project or javafx project.I already add all jar files to project library.But I can&#8217;t run the application in netbeans.Is it possible to run javafx file in java project?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: julien</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1447</link>
		<dc:creator>julien</dc:creator>
		<pubDate>Fri, 10 Jul 2009 08:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1447</guid>
		<description>Great article ! I would like to use the javaFX java2d capabilities to create an image server : resize / format images with javaFx in a servlet. Do you know if it's possible ?


Hi Julien,

Since JavaFX is not thread safe, i.e. multithreading in JavaFX may not work, it may not fit well in a web/servlet environment. You could use com.sun.javafx.runtime.Entry.deferAction() to run everything on your server code, but that would probably degrade performance. Anyway, you can give it a try and see how it works.

Rgds,
Henry</description>
		<content:encoded><![CDATA[<p>Great article ! I would like to use the javaFX java2d capabilities to create an image server : resize / format images with javaFx in a servlet. Do you know if it&#8217;s possible ?</p>
<p>Hi Julien,</p>
<p>Since JavaFX is not thread safe, i.e. multithreading in JavaFX may not work, it may not fit well in a web/servlet environment. You could use com.sun.javafx.runtime.Entry.deferAction() to run everything on your server code, but that would probably degrade performance. Anyway, you can give it a try and see how it works.</p>
<p>Rgds,<br />
Henry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Interoperability between JavaFX and Java</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1440</link>
		<dc:creator>Interoperability between JavaFX and Java</dc:creator>
		<pubDate>Mon, 22 Jun 2009 06:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1440</guid>
		<description>[...] [Update: Please refer to my latest article for discussion on Pure Java Code to Call JavaFX Class] [...]</description>
		<content:encoded><![CDATA[<p>[...] [Update: Please refer to my latest article for discussion on Pure Java Code to Call JavaFX Class] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sébastien Stormacq</title>
		<link>http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/#comment-1438</link>
		<dc:creator>Sébastien Stormacq</dc:creator>
		<pubDate>Sun, 21 Jun 2009 11:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.compare-review-information.com/?p=278#comment-1438</guid>
		<description>Cool !  Thanks for sharing this !
Any chance to include JavaFX in a Swing based application ?
What about the posisbility to include a PieChart in a JPanel for example ?

Seb

Hi Seb,

You can visit this post to see how to &lt;a href="http://www.javafxgame.com/javafx-scene-swing-java/" rel="nofollow"&gt;put JavaFX components into Java Swing application&lt;/a&gt;.

Henry</description>
		<content:encoded><![CDATA[<p>Cool !  Thanks for sharing this !<br />
Any chance to include JavaFX in a Swing based application ?<br />
What about the posisbility to include a PieChart in a JPanel for example ?</p>
<p>Seb</p>
<p>Hi Seb,</p>
<p>You can visit this post to see how to <a href="http://www.javafxgame.com/javafx-scene-swing-java/" rel="nofollow">put JavaFX components into Java Swing application</a>.</p>
<p>Henry</p>
]]></content:encoded>
	</item>
</channel>
</rss>
