<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>luauf.com &#187; JavaFX</title>
	<atom:link href="http://luauf.com/category/programacion/javafx-programacion/feed/" rel="self" type="application/rss+xml" />
	<link>http://luauf.com</link>
	<description>Sistemas Operativos, Bases de Datos, Programación y Redes</description>
	<lastBuildDate>Mon, 14 May 2012 01:15:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rich Internet Applications con JavaFX 1.0</title>
		<link>http://luauf.com/2009/01/01/rich-internet-applications-con-javafx-10/</link>
		<comments>http://luauf.com/2009/01/01/rich-internet-applications-con-javafx-10/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 07:00:56 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=758</guid>
		<description><![CDATA[Finalmente, aproximadamente a los diez días del último mes del año que dejamos atrás fue liberado JavaFX 1.0, la teconología de Java para construir Rich Internet Applications y hacer frente a tecnologías como...]]></description>
			<content:encoded><![CDATA[<p>Finalmente, aproximadamente a los diez días del último mes del año que dejamos atrás fue liberado JavaFX 1.0, la teconología de Java para construir <a href="http://luauf.com/tag/ria/">Rich Internet Applications</a> y hacer frente a tecnologías como Silverlight de Microsoft o <a href="http://luauf.com/2008/04/09/aplicaciones-flash-de-escritorio">AIR</a> de Adobe.</p>
<p>La noticia de la liberación vino acompañada con un lavado de cara y rediseño total del sitio web, que ahora incorpora ejemplos, tutoriales, FAQs, etc.</p>
<p style="text-align: center;"><img class="alignnone size-medium wp-image-759" title="javafx" src="http://luauf.com/wp-content/uploads/2008/12/javafx-300x84.png" alt="javafx" width="300" height="84" /></p>
<p>Lamentablemente, por ahora, solo está disponible para Windows y MAC, proximamente según promesas de SUN para Linux.</p>
<p><span id="more-758"></span>En este mismo <a href="http://luauf.com/">blog</a> ya hemos hablado y <a href="http://luauf.com/2008/04/10/mis-primeros-pasos-con-javafx/">dado los primeros pasos</a> en <a href="http://luauf.com/tag/javafx/">JavaFX</a> por lo tanto, si ya hemos tenido la oportunidad de probarlo ¿de que nos vale la publicación oficial del mismo? Por más que ya se podía ir haciendo algo, el lanzamiento oficial marca un hito, pues a partir de ahora crecerá la comunidad, hay apoyo oficial de <a href="http://luauf.com/tag/sun/">Sun</a> y a la vez los principales <a href="http://luauf.com/category/IDES/">IDEs</a> empiezan a tenerlo en cuenta incorporando plugins, ejemplos, etc.</p>
<p>Vía: <a href="http://www.javahispano.org/contenidos/es/javafx_1_0_al_fin_liberado/?utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_blank">javaHispano</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2009/01/01/rich-internet-applications-con-javafx-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Widgets en JavaFX Scripts compilados</title>
		<link>http://luauf.com/2008/04/12/widgets-en-javafx-scripts-compilados/</link>
		<comments>http://luauf.com/2008/04/12/widgets-en-javafx-scripts-compilados/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 22:11:42 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=126</guid>
		<description><![CDATA[En Mis primeros pasos con JavaFX habiamos descargado el compilador JavaFX y compilado el &#8220;Hola Mundo&#8221;. En esta ocasión vamos a ver un poco más en detalle el código JavaFX Script y la...]]></description>
			<content:encoded><![CDATA[<p>En <a href="http://luauf.com/2008/04/10/mis-primeros-pasos-con-javafx/" target="_blank">Mis primeros pasos con JavaFX</a> habiamos descargado el compilador JavaFX y compilado el &#8220;Hola Mundo&#8221;. En esta ocasión vamos a ver un poco más en detalle el código JavaFX Script y la creación de widgets (componentes UI) como <code>Box, </code><code>ColorChooser, </code><code>Dialog, </code><code>Menu, </code><code>MenuBar, </code><code>MenuItem, </code><code>SimpleLabel </code>y<code> </code><code>TextField.</code></p>
<p style="text-align: center;"><a href="http://luauf.com/wp-content/uploads/2008/04/javafxwgt.jpg" target="_blank"><img class="alignnone size-medium wp-image-129" title="javafxwgt" src="http://luauf.com/wp-content/uploads/2008/04/javafxwgt-300x288.jpg" alt="" width="300" height="288" /></a></p>
<p><span id="more-126"></span></p>
<ul>
<li>¿Como crear una clase?</li>
</ul>
<div class="syntax_hilite">
<div id="javascript-7">
<div class="javascript"><span style="color: #003366; font-weight: bold;">class</span> Model <span style="color: #66cc66;">&#123;</span><br />
&nbsp; attribute messageText:String;<br />
&nbsp; attribute messageColor:Color;<br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<p>Las clases pueden contener clases, atributos y funciones y pueden ser publicas, privadas y protegidas.</p>
<ul>
<li>¿Como crear un componente UI?</li>
</ul>
<div class="syntax_hilite">
<div id="javascript-8">
<div class="javascript"><span style="color: #003366; font-weight: bold;">var</span> model =<br />
&nbsp; Model <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; messageText: <span style="color: #3366CC;">&#8220;JavaFX Script has lots of cool UI components&#8221;</span><br />
&nbsp; &nbsp; messageColor: Color.<span style="color: #006600;">BLUE</span><br />
&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<div class="syntax_hilite">
<div id="javascript-9">
<div class="javascript"><span style="color: #003366; font-weight: bold;">var</span> msgTF:TextField =<br />
&nbsp; TextField <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; value: model.<span style="color: #006600;">messageText</span><br />
&nbsp; &nbsp; columns: <span style="color: #CC0000;">30</span><br />
&nbsp; &nbsp; background: Color.<span style="color: #006600;">WHITE</span><br />
&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<ul>
<li>¿Que atributos tiene la clase TextField?</li>
</ul>
<p style="padding-left: 30px;">Se pueden destacar, entre otros:</p>
<blockquote>
<ul>
<li>action: manejador de eventos (debe ser una <code>funcion()</code>)</li>
<li>columns: ancho de la caja de texto</li>
<li>editable</li>
<li>horizontalAlignment: alineación horizontal del texto</li>
<li>onChange: manejador de eventos (debe ser una <code>funcion()</code>)</li>
</ul>
</blockquote>
<p style="padding-left: 30px;">Para más información ver el diagrama de clases que se anexa al pie del post.</p>
<ul>
<li>¿Como crear un menu y un díalogo?</li>
</ul>
<div class="syntax_hilite">
<div id="javascript-10">
<div class="javascript">menubar:<br />
&nbsp; MenuBar <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; menus: <span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; Menu <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;Options&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; mnemonic: KeyStroke.<span style="color: #006600;">O</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; items: <span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MenuItem <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;Text&#8230;&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mnemonic: KeyStroke.<span style="color: #006600;">T</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; accelerator:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Accelerator <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; modifier: KeyModifier.<span style="color: #006600;">CTRL</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keyStroke: KeyStroke.<span style="color: #006600;">T</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #000066; font-weight: bold;">Void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8230;<span style="color: #006600;">some</span> code omitted&#8230;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MenuItem <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;Select Color&#8230;&#8221;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mnemonic: KeyStroke.<span style="color: #006600;">S</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; accelerator:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Accelerator <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; modifier: KeyModifier.<span style="color: #006600;">CTRL</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keyStroke: KeyStroke.<span style="color: #006600;">S</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #000066; font-weight: bold;">Void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8230;<span style="color: #006600;">some</span> code omitted&#8230;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MenuItem <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;Exit&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mnemonic: KeyStroke.<span style="color: #006600;">X</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; action:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #000066; font-weight: bold;">Void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.<span style="color: #006600;">exit</span><span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><br />
&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<div class="syntax_hilite">
<div id="javascript-11">
<div class="javascript">dlg =<br />
&nbsp; Dialog <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; modal: <span style="color: #003366; font-weight: bold;">true</span><br />
&nbsp; &nbsp; title: <span style="color: #3366CC;">&#8220;Enter Text&#8221;</span><br />
&nbsp; &nbsp; visible: <span style="color: #003366; font-weight: bold;">true</span><br />
&nbsp; &nbsp; content:<br />
&nbsp; &nbsp; &nbsp; Box <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; orientation: Orientation.<span style="color: #006600;">VERTICAL</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; content: <span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SimpleLabel <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;Text:&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msgTF<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; buttons: <span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; Button <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;OK&#8221;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; defaultButton: <span style="color: #003366; font-weight: bold;">true</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; action:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #000066; font-weight: bold;">Void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; model.<span style="color: #006600;">messageText</span> = msgTF.<span style="color: #006600;">value</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dlg.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; Button <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; text: <span style="color: #3366CC;">&#8220;Cancel&#8221;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; defaultCancelButton: <span style="color: #003366; font-weight: bold;">true</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; action:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #000066; font-weight: bold;">Void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dlg.<span style="color: #006600;">hide</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #66cc66;">&#93;</span><br />
&nbsp;<span style="color: #66cc66;">&#125;</span>;</div>
</div>
</div>
<p></p>
<p style="padding-left: 30px;">Dejo el código a vuestra interpretación, como verán es muy intuitivo.</p>
<ul>
<li>¿Que hay acerca de Binding?</li>
</ul>
<p style="padding-left: 30px;">La tecnología JavaFX  Script implementa el Modelo-Vista-Controlador (MVC). Así, se puede mantener la Vista (UI) y el Modelo (datos) del programa sincronizados con el uso del operador bind.Los operadores a menudo dicen &#8220;Una vez que usas binding, nunca volverás atrás).</p>
<div class="syntax_hilite">
<div id="javascript-12">
<div class="javascript">Text <span style="color: #66cc66;">&#123;</span><br />
&nbsp; font:<br />
&nbsp; &nbsp; Font <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; face: FontFace.<span style="color: #006600;">SANSSERIF</span><br />
&nbsp; &nbsp; &nbsp; style: FontStyle.<span style="color: #006600;">BOLD</span>;<br />
&nbsp; &nbsp; &nbsp; size: <span style="color: #CC0000;">24</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; x: <span style="color: #CC0000;">20</span><br />
&nbsp; y: <span style="color: #CC0000;">40</span><br />
&nbsp; stroke: bind model.<span style="color: #006600;">messageColor</span><br />
&nbsp; fill: bind model.<span style="color: #006600;">messageColor</span><br />
&nbsp; content: bind model.<span style="color: #006600;">messageText</span><br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p>
<BR><br />
Esto es todo por el momento, disculpen si el nivel de detalle no fue el suficiente, pero el objetivo del post no fue desarrollar un tutorial de JavaFX Script, sino tener una mayor aproximación a la tecnología.<br />
<HR><br />
<strong>Anexos:</strong></p>
<p>El siguiente, es el diagrama de clases de una porción de la jerarquía de clases de los compilados JavaFX Script:</p>
<p style="text-align: center;"><a href="http://luauf.com/wp-content/uploads/2008/04/class_diagram.jpg" target="_blank"><img class="alignnone size-medium wp-image-128" title="class_diagram" src="http://luauf.com/wp-content/uploads/2008/04/class_diagram-241x300.jpg" alt="" width="241" height="300" /></a></p>
<p>Descargar el ejemplo: <a href="http://luauf.com/wp-content/uploads/2008/04/widgets.fx" target="_blank">widget.fx</a></p>
<p>Basado en el artículo original <a href="http://java.sun.com/developer/technicalArticles/scripting/javafx/ria_2/" target="_blank">Using UI Components in Compiled JavaFX Script Technology</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2008/04/12/widgets-en-javafx-scripts-compilados/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mis primeros pasos con JavaFX</title>
		<link>http://luauf.com/2008/04/10/mis-primeros-pasos-con-javafx/</link>
		<comments>http://luauf.com/2008/04/10/mis-primeros-pasos-con-javafx/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 02:43:51 +0000</pubDate>
		<dc:creator>Luciano</dc:creator>
				<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://luauf.com/?p=123</guid>
		<description><![CDATA[De la mano de Sun Microsystems, hace ya un tiempo, ha llegado JavaFX para competir en el mercado de las RIA (Rich Internet Application) con otros productos como Ms Silverlight o Adobe AIR....]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">De la mano de <a title="Sun Microsystems" href="http://www.sun.com" target="_blank">Sun Microsystems</a>, hace ya un tiempo, ha llegado JavaFX para competir en el mercado de las RIA (Rich Internet Application) con otros productos como Ms Silverlight o <a href="http://luauf.com/2008/04/09/aplicaciones-flash-de-escritorio" target="_blank">Adobe AIR</a>.</p>
<p class="MsoNormal">Siguiendo los pasos del artículo <a href="http://java.sun.com/developer/technicalArticles/scripting/javafx/ria_1/#1" target="_blank">Creating Rich Internet Applications With Compiled JavaFX Script Technology </a>instalaremos el compilador, compilaremos y ejecutaremos el infaltable “Hola Mundo”.</p>
<p class="MsoNormal" style="text-align: center;"><a href="http://luauf.com/wp-content/uploads/2008/04/fx.jpg" target="_blank"><img class="aligncenter size-medium wp-image-124" title="fx" src="http://luauf.com/wp-content/uploads/2008/04/fx-300x197.jpg" alt="" width="300" height="197" /></a></p>
<p class="MsoNormal"><span id="more-123"></span></p>
<ul>
<li>Si no tenemos instalada la maquina virtual de Java, instalar el <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">JR5 o superior</a></li>
<li>Descargar el <a href="http://openjfx.java.sun.com/hudson/job/openjfx-compiler/lastSuccessfulBuild/artifact/*zip*/archive.zip" target="_blank">JavaFX Script Compiler</a></li>
<li>Descomprimir archive.zip en path que desee, y agregar la variable de entorno <code><span style="font-size: 10pt; line-height: 115%;">\archive\openjfx-compiler\dist\bin</span></code> <span> </span>(desde propiedades del sistema, o bien para la un consola <span> </span>ejecutando <span> </span><span style="font-family: ">set Path=%Path%;&#8221;path\archive\openjfx-compiler\dist\bin&#8221;</span></li>
<li>Crear el archivo <span style="font-family: ">HolaMundo.Fx:</span></li>
</ul>
<pre style="padding-left: 30px;"><span style="font-size: 10pt; line-height: 115%; font-family: ">import javafx.ui.*;
import javafx.ui.canvas.*;</span><span style="font-size: 10pt; line-height: 115%; font-family: ">

Frame {<span>
</span>  title: "JavaFX Rich Internet Applications"<span>
</span>  width: 550<span>
</span>  height: 200<span>
</span>  background: Color.WHITE<span>
</span>  visible: true<span>
</span>  content:<span>
</span>  BorderPanel {<span>
</span>    top:<span>
</span>      FlowPanel {</span><span style="font-size: 10pt; line-height: 115%; font-family: ">
        content:</span><span style="font-size: 10pt; line-height: 115%; font-family: ">
          Button {
</span><span style="font-size: 10pt; line-height: 115%; font-family: ">            text: "Click aquí!"</span><span style="font-size: 10pt; line-height: 115%; font-family: ">
            action:
</span><span style="font-size: 10pt; line-height: 115%; font-family: ">              function(): Void {</span><span style="font-size: 10pt; line-height: 115%; font-family: ">
                MessageDialog {</span><span style="font-size: 10pt; line-height: 115%; font-family: ">
                  title: "JavaFX Script"<span>
</span></span><span style="font-size: 10pt; line-height: 115%; font-family: ">                  message: "JavaFX Script
es simple y elegante"<span>
</span>                  visible: true<span>
</span>               }<span>
</span>             }<span>
</span>         }<span>
</span>     }<span>
</span>   center:<span>
</span>     Canvas {<span>
</span>       content:<span>
</span>         Text {<span>
</span>           font:<span>
</span>             Font {<span>
</span>               faceName: "Sans Serif"<span>
</span>               style: FontStyle.BOLD<span>
</span>               size: 18<span>
</span>             }<span>
</span>             x: 30<span>
</span>             y: 30<span>
</span>             stroke: Color.BLUE <span>
</span>             fill: Color.BLUE<span>
</span></span><span style="font-size: 10pt; line-height: 115%; font-family: ">             content: "JavaFX Script
hace el desarrollo de RIA más facil"<span>
</span>         } <span>
</span>     }<span>
</span>  }
}</span></pre>
<ul>
<li>Compilar <span style="font-family: ">HolaMundo.Fx, </span>ejecutando <span style="font-family: ">javafx HolaMundo.fx</span></li>
<li>Ejecutar la aplicación, <span style="font-family: ">javafx HolaMundo</span></li>
</ul>
<p class="MsoNormal"><span style="font-family: "> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://luauf.com/2008/04/10/mis-primeros-pasos-con-javafx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

