<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - javafx tag</title>
  <link>http://www.weiqigao.com/blog/tags/javafx/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>Software Engineering Tech Trend (SETT): Experiments With JavaFX 3D Scenes</title>
    <link>http://www.weiqigao.com/blog/2012/05/01/software_engineering_tech_trend_sett_experiments_with_javafx_3d_scenes.html</link>
    
      
        <description>
          &lt;p&gt;The last article I wrote for &lt;a href= &#034;http://www.ociweb.com/&#034; &gt;OCI&lt;/a&gt;&#039;s online newsletter Java News Brief (JNB) was &lt;a href= &#034;http://jnb.ociweb.com/jnb/jnbDec2010.html&#034; &gt;Six JDK Classes You Think You Know&lt;/a&gt;, which several readers have told me was fun.  That was the last article in the JNB series. The following month, the series began its publication under the new name &lt;a href= &#034;http://www.ociweb.com/sett/index.html&#034; &gt;Software Engineering Tech Trend (SETT)&lt;/a&gt;, with an expanded scope covering a broader array of software engineering topics.  Here&#039;s a sample of the articles that was published in SETT in the last year and a half:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href= &#034;http://sett.ociweb.com/sett/settJan2011.html&#034; &gt;Learning Programming Languages with Koans&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://sett.ociweb.com/sett/settApr2011.html&#034; &gt;Sensing the World from an Android[tm] Device&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://ociweb.com/sett/settJun2011.html&#034; &gt;Introduction to jQuery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://ociweb.com/sett/settJul2011.html&#034; &gt;GPU Computing with OpenCL&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://ociweb.com/sett/settFeb2012.html&#034; &gt;Spock for the Java Developer: An Introduction&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this months SETT article, &lt;a href= &#034;http://sett.ociweb.com/sett/settMay2012.html&#034; &gt;Experiments With JavaFX 3D Scenes&lt;/a&gt;, I show you one aspect of JavaFX, its 3D scenes support, through a set of experiments that go from simple animated squares moving along straight lines to an animated formation of a tetrahedron in 3D.  I was hoping to show you an animation of a dodecahedron being formed from a stack of pentagons,but I ran out of time for the article and have to settle for a tetrahedron there.&lt;/p&gt;

&lt;p&gt;I did, however, finish an animated dodecahedron after I submitted the article.  And here is how it goes:&lt;/p&gt;

&lt;center&gt;
&lt;iframe width=&#034;640&#034; height=&#034;480&#034; src=&#034;http://www.youtube.com/embed/x243BZHweIw?rel=0&#034; frameborder=&#034;0&#034; allowfullscreen&gt;&lt;/iframe&gt;
&lt;/center&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2012/05/01/software_engineering_tech_trend_sett_experiments_with_javafx_3d_scenes.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2012/05/01/software_engineering_tech_trend_sett_experiments_with_javafx_3d_scenes.html</guid>
    <pubDate>Wed, 02 May 2012 03:28:20 GMT</pubDate>
  </item>
  
  <item>
    <title>An Updated JavaFX 2 Applet: Pythagorean Theorem</title>
    <link>http://www.weiqigao.com/blog/2012/04/04/an_updated_javafx_2_applet_pythagorean_theorem.html</link>
    
      
        <description>
          &lt;p&gt;Oracle announced the &lt;a href= &#034;https://blogs.oracle.com/javafx/entry/javafx_1_2_and_javafx&#034; &gt;EOL (end of life) for JavaFX 1.2 and 1.3&lt;/a&gt; 36 days ago:&lt;/p&gt;

&lt;blockquote&gt;
&lt;a href= &#034;https://blogs.oracle.com/javafx/entry/javafx_1_2_and_javafx&#034; &gt;javafx4you&lt;/a&gt;: Today, we are announcing that JavaFX 1.2 and JavaFX 1.3 will reach end of life (EOL) on &lt;b&gt;December 20, 2012&lt;/b&gt;. More specifically, the Oracle server providing access to the JavaFX Runtime for these versions will no longer be available after that date.
&lt;/blockquote&gt;

&lt;p&gt;So I spent some time in the last couple of days to update one of my JavaFX 1.1.1 applets published on this blog&amp;mdash;an animation that depicts a proof of the Pythagorean Theorem.  It appeared in &lt;a href= &#034;http://www.weiqigao.com/blog/2009/05/09/zhou_bi_mathematical_manual.html&#034; &gt;Zhou Bi Mathematical Manual (周髀算经)&lt;/a&gt; which I wrote 1061 days ago.  I wanted to update this applet because people have told me that it helped them or their kids to understand the Pythagorean Theorem better.&lt;/p&gt;

&lt;p&gt;JavaFX 1.x code, which is in JavaFX Script, translates easily into JavaFX 2.0 code, which is simply Java.  The two facilities of JavaFX 1.x that made the original applet work, bindings and animations, are major APIs in JavaFX 2.0.  And the porting is almost mechanical.  Naturally the Java code is more verbose than the equivalent JavaFX Script code.  But that&#039;s the price we pay for converting JavaFX into the wider-reaching Java APIs.&lt;/p&gt;

&lt;p&gt;While I was at it, I added a background image that was merely put side by side with the applet in the original post.  Since JavaFX 2.0 applets only works on Windows, I have put the applet on a &lt;a href= &#034;./files/Pythagorean.html&#034; &gt;separate page here&lt;/a&gt;.  The source code is &lt;a href= &#034;./files/Pythagorean.java&#034; &gt;here&lt;/a&gt;.  The background image is &lt;a href= &#034;./images/gou-gu.jpg&#034; &gt;here&lt;/a&gt;.  The following is a video showing the applet at work.  Notice the actual jpg file is bigger than the applet&#039;s Stage size.  I used a &lt;tt&gt;viewport&lt;/tt&gt; on an &lt;tt&gt;ImageView&lt;/tt&gt; to pick out a portion of the image.&lt;/p&gt;

&lt;center&gt;
&lt;video style=&#034;padding: 10px 0px 10px 0px&#034; src=&#034;http://www.weiqigao.com/blog/files/Pythagorean.mov&#034;  controls=&#034;true&#034;&gt;Your browser does not support HTML 5 video.  Here&#039;s the &lt;a href= &#034;./files/Pythagorean.mov&#034; &gt;link to the video file&lt;/a&gt;.&lt;/video&gt;
&lt;/center&gt;

&lt;p&gt;Enjoy the elegance of geometry and JavaFX.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2012/04/04/an_updated_javafx_2_applet_pythagorean_theorem.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2012/04/04/an_updated_javafx_2_applet_pythagorean_theorem.html</guid>
    <pubDate>Wed, 04 Apr 2012 12:25:27 GMT</pubDate>
  </item>
  
  <item>
    <title>Pro JavaFX 2 Platform Book Is Available: eBook Now, pBook In Two Weeks</title>
    <link>http://www.weiqigao.com/blog/2012/02/22/pro_javafx_2_platform_book_is_available_ebook_now_pbook_in_two_weeks.html</link>
    
      
        <description>
          &lt;p&gt;&lt;a href= &#034;./images/pro_javafx_2_platform_book.png&#034; &gt;&lt;img src=&#034;http://www.weiqigao.com/blog/images/pro_javafx_2_platform_book.png&#034; width=&#034;186&#034; height=&#034;222&#034; title=&#034;Pro JavaFX 2 Platform&#034; alt=&#034;Pro JavaFX 2 Platform&#034; align=&#034;left&#034; hspace=&#034;10&#034;/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;a href= &#034;https://twitter.com/#!/JavaFXpert/status/171990017856651264&#034; &gt;JavaFXpert on twitter&lt;/a&gt;: Pro JavaFX 2 Platform book publishing 07.mar.2012, but available now as eBook. Source code available now as well: &lt;a href= &#034;http://www.apress.com/9781430268727&#034; &gt;apress.com/9781430268727&lt;/a&gt;
&lt;/blockquote&gt;

&lt;p&gt;The updated version of our (&lt;a href= &#034;http://javafxpert.com/&#034; &gt;Jim Weaver&lt;/a&gt;, &lt;a href= &#034;http://steveonjava.com/ &#034;&gt;Stephen Chin&lt;/a&gt;, &lt;a href= &#034;http://pleasingsoftware.blogspot.com/&#034; &gt;Dean Iverson&lt;/a&gt;, &lt;a href= &#034;http://blogs.lodgon.com/johan/blog/&#034; &gt;Johan Vos&lt;/a&gt; and me) JavaFX book by Apress, &lt;a href= &#034;http://www.apress.com/9781430268727&#034; &gt;Pro JavaFX 2 Platform&lt;/a&gt;, is finished.  The paper book will be available on March 7, 2012.  You can get the eBook now through the &#034;Buy Alpha Book&#034; program.  The source code of the book is also available at &lt;a href= &#034;http://www.apress.com/9781430268727&#034; &gt;http://www.apress.com/9781430268727&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here&#039;s the back cover description of the new book:&lt;/p&gt;

&lt;p&gt;In &lt;em&gt;Pro JavaFX 2: A Definitive Guide to Rich Clients with Java Technology&lt;/em&gt;, &lt;strong&gt;Jim Weaver, Weiqi Gao, Stephen Chin, Dean Iverson,&lt;/strong&gt; and &lt;strong&gt;Johan Vos&lt;/strong&gt; show you how you can use the JavaFX platform to create rich-client Java applications. You&#039;ll see how JavaFX provides a powerful Java-based UI platform capable of handling large-scale data-driven business applications.&lt;/p&gt;

&lt;p&gt;Covering the JavaFX API, development tools, and best practices, this book provides code examples that explore the exciting new features provided with JavaFX 2. It contains engaging tutorials that cover virtually every facet of JavaFX development and reference materials on JavaFX that augment the JavaFX API documentation. Written in an engaging and friendly style, &lt;em&gt;Pro JavaFX 2&lt;/em&gt; is an essential guide to JavaFX 2.&lt;/p&gt;

&lt;h4&gt;What you’ll learn&lt;/h4&gt;
&lt;ul&gt;     &lt;li&gt;How to get started with JavaFX 2, including downloading the SDK and available tools. &lt;/li&gt;     &lt;li&gt;How to express user interfaces with a declarative-style enabled by the JavaFX builder classes. &lt;/li&gt;     &lt;li&gt;How to use property binding to keep the UI easily in sync with the model. &lt;/li&gt;     &lt;li&gt;How to use the rich set of JavaFX UI controls, charts, shapes, effects, transformations, and animations to create stunning, responsive, user interfaces. &lt;/li&gt;     &lt;li&gt;How to use the powerful JavaFX layout classes to define the user interface in a cross-platform fashion. &lt;/li&gt;     &lt;li&gt;How to leverage the observable collection classes to observe changes in, and bind to, Java collections. &lt;/li&gt;     &lt;li&gt;How to use the JavaFX media classes to play audio and video. &lt;/li&gt;     &lt;li&gt;How to interact with external application services to create an enterprise application with JavaFX. &lt;/li&gt;     &lt;li&gt;How to use the JavaFX API with alternative languages such as Scala, Groovy, and Visage. &lt;/li&gt;     &lt;li&gt;How to uncover the JavaFX APIs to whatever degree you choose. The tutorials, reference materials, and pointers to resources are exhaustive. &lt;/li&gt; &lt;/ul&gt;

&lt;p&gt;I hope the book will help you learn JavaFX quicker, have fun playing with the JavaFX 2 APIs, profitably produce compelling rich applications on the Java platform.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2012/02/22/pro_javafx_2_platform_book_is_available_ebook_now_pbook_in_two_weeks.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2012/02/22/pro_javafx_2_platform_book_is_available_ebook_now_pbook_in_two_weeks.html</guid>
    <pubDate>Wed, 22 Feb 2012 13:56:46 GMT</pubDate>
  </item>
  
  </channel>
</rss>

