<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2008-12-10T14:17:06Z</created-at>
  <description>Spelling and grammar fixes only. No changes to content.</description>
  <id type="integer">569</id>
  <name>GettingStarted</name>
  <number type="integer">6</number>
  <person-id type="integer">3169</person-id>
  <text>= Java FX for Eclipse =

__TOC__

== Installation ==

=== Install JavaFX SDK ===

Download JavaFX SDK for [http://java.sun.com/javafx/downloads Windows] or [http://java.sun.com/javafx/downloads Mac Os X]. Follow the installation instructions.

=== Install Eclipse ===

The plugin requires Eclipse 3.4 or newer. We recommend downloading Eclipse IDE for Java EE Developers for [http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-win32.zip Windows] or [http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-macosx-carbon.tar.gz Mac OS X]. Then follow the installation instructions.

=== Install Plugin ===

# Download plugin:
# [http://kenai.com/downloads/eplugin/com.sun.javafx.eclipse.feature-win32-win32-x86-1.0.zip com.sun.javafx.eclipse.feature-win32-win32-x86-1.0.zip] for Windows
# [http://kenai.com/downloads/eplugin/com.sun.javafx.eclipse.feature-macosx-carbon-x86-1.0.zip com.sun.javafx.eclipse.feature-macosx-carbon-x86-1.0.zip] for Mac OS X
# Unzip into the eclipse installation directory
# There should be new files in &lt;code&gt;''ECLIPSE_ROOT/''plugins&lt;/code&gt; and &lt;code&gt;''ECLIPSE_ROOT/''features&lt;/code&gt;
# Run Eclipse

== Hello World ==

=== Creating JavaFX Project and Configuring JavaFX SDK ===

# Start eclipse. You will see the basic layout of the workbench.&lt;br /&gt;[[image: new_workbench_java.png|New empty workbench]]
# In the &lt;span class=&quot;eclipseView&quot;&gt;Package Explorer&lt;/span&gt; view right-click and select &lt;span class=&quot;menuNavigation&quot;&gt;New &amp;gt; Java Project&lt;/span&gt;&lt;br /&gt;[[image: create_new_java_project.png|New Java Project menu]]
# Create a new Java&lt;sup&gt;TM&lt;/sup&gt; project. &lt;br /&gt;[[image: new_project_wizard_step1.png|New empty workbench]]
# Name it &lt;span class=&quot;userEnter&quot;&gt;MyJavaFXProject&lt;/span&gt; and press the &lt;span class=&quot;buttonPointer&quot;&gt;Finish&lt;/span&gt; button. The new project appears in the &lt;span class=&quot;eclipseView&quot;&gt;Package Explorer&lt;/span&gt;. &lt;br /&gt;[[image: new_project_wizard_result.png|New project created]]
# Right-click on the newly created project and select &lt;span class=&quot;menuNavigation&quot;&gt;JavaFX &amp;gt; Add JavaFX Nature&lt;/span&gt;. &lt;br /&gt;[[image: add_javafx_nature.png|Add JavaFX nature to Java Project]]
# The &lt;span class=&quot;eclipseView&quot;&gt;JavaFX&lt;/span&gt; perspective is activated. If this is first time you are adding the JavaFX nature to a Java Project you will be asked to set the &lt;code&gt;JAVAFX_HOME&lt;/code&gt; property. &lt;br /&gt;[[image: missing_javafx_sdk_message.png|Error, JavaFX SDK home not set up.]]&lt;br /&gt; To set up the &lt;code&gt;JAVAFX_HOME&lt;/code&gt; property, follow these steps:
## Press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on message dialog. No thanks, I prefer &lt;span class=&quot;buttonPointer&quot;&gt;[[#IWantSelectCancel|Cancel]]&lt;/span&gt; button.
## You should see the below dialog with &lt;code&gt;JAVAFX_HOME&lt;/code&gt; set to (empty) value. &lt;br /&gt;[[image: preferences_setup_javafx_sdk_path.png|Preferences: Classpath Variables]]
## Press &lt;span class=&quot;buttonPointer&quot;&gt;Edit...&lt;/span&gt; button on the right side to bring up the edit window. &lt;br /&gt;[[image: edit_variable_entry.png|Edit classpath variable]]
## Press the &lt;span class=&quot;buttonPointer&quot;&gt;Folder...&lt;/span&gt; button and select the installation folder of the JavaFX SDK. &lt;br /&gt;[[image: folder_selection_javafs_sdk_root_folder.png|Select instalation folder of JavaFX SDK]]
## Press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on &lt;span class=&quot;eclipseView&quot;&gt;Folder Selection&lt;/span&gt; dialog, press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on &lt;span class=&quot;eclipseView&quot;&gt;Edit Variable Entry&lt;/span&gt; dialog. &lt;br /&gt;[[image: preference_setup_result.png|Result of setting JAVAFX_HOME property]]
## Press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on &lt;span class=&quot;eclipseView&quot;&gt;Preferences&lt;/span&gt; dialog. The &lt;code&gt;JAVAFX_HOME&lt;/code&gt; variable has been set. If you decided to select the &lt;span class=&quot;buttonPointer&quot;&gt;Cancel&lt;/span&gt; button on the error dialog you will skip this setup and the system will never ask you for this again. To set this up later just [[#sorryISelectCancel|follow these instructions]].
# Voila! you have created your first JavaFX Project. &lt;br /&gt;[[image: javafx_perspective_overview.png|Opened JavaFX Perspective with Java Project with JavaFX nature]]

=== Adding Files ===

# Expand &lt;span class=&quot;userEnter&quot;&gt;MyJavaFXProject&lt;/span&gt;. Left click on &lt;span class=&quot;folderId&quot;&gt;src&lt;/span&gt; folder. Then select &lt;span class=&quot;menuNavigation&quot;&gt;New &amp;gt; Package&lt;/span&gt; and type into the &lt;span class=&quot;buttonPointer&quot;&gt;Name&lt;/span&gt; field the package name &lt;span class=&quot;userEnter&quot;&gt;com.sun.eclipse.example&lt;/span&gt;. &lt;br /&gt;[[image: create_new_package.png|Adds new Empty Script file into folder.]]
# Left click on &lt;span class=&quot;folderId&quot;&gt;src/com.sun.eclipse.example&lt;/span&gt; folder. Then select &lt;span class=&quot;menuNavigation&quot;&gt;New &amp;gt; Empty Script&lt;/span&gt;. &lt;br /&gt;[[image: new_file_empty_script_menu.png|Adds new Empty Script file into folder.]]
# The &lt;span class=&quot;eclipseView&quot;&gt;New File&lt;/span&gt; wizard will appear. Type &lt;span class=&quot;userEnter&quot;&gt;Main&lt;/span&gt; into the &lt;span class=&quot;buttonPointer&quot;&gt;Name&lt;/span&gt; field. &lt;br /&gt;[[image: new_file_wizard.png|New file wizzard]]
# Press the &lt;span class=&quot;buttonPointer&quot;&gt;Finish&lt;/span&gt; button and an empty new JavaFX script will be created. &lt;br /&gt;[[image: new_file_result.png|New empty FX script]]
# Let's focus on &lt;span class=&quot;eclipseView&quot;&gt;Snippets&lt;/span&gt; view. There are a lot of code snippets to help you develop your application. Expand &lt;span class=&quot;buttonPointer&quot;&gt;Applications&lt;/span&gt; and select &lt;span class=&quot;eclipseView&quot;&gt;Stage&lt;/span&gt;. &lt;br /&gt;[[image: snippets_applications.png|Snippets View]]
# Drag and drop a &lt;span class=&quot;buttonPointer&quot;&gt;Stage&lt;/span&gt; node into the editor window. The &lt;span class=&quot;eclipseView&quot;&gt;Insert Template: Stage&lt;/span&gt; dialog appears. Change the value of the title variable to &lt;span class=&quot;userEnter&quot;&gt;Hello World!&lt;/span&gt;. &lt;br /&gt;[[image: drag_stage_into_editor.png|Result after drop]]
# Press the &lt;span class=&quot;buttonPointer&quot;&gt;Insert&lt;/span&gt; button to insert the resulting template into the source code. &lt;br /&gt;[[image: result_after_drop_stage.png|Result in editor]]
# &lt;span class=&quot;scream&quot;&gt;Mission accomplished, Sir!&lt;/span&gt;

=== Running ===

Running the application in Eclipse is extremely easy.

# Press the &lt;span class=&quot;buttonPointer&quot;&gt;Run&lt;/span&gt; button on the toolbar to launch the application. &lt;br /&gt;[[image: run_file_icon_detail.png|Run icon]]
# If you are running for the first time the &lt;span class=&quot;eclipseView&quot;&gt;Edit Configuration&lt;/span&gt; dialog appears. &lt;br /&gt;[[image: runnig_configuration.png|Configuration]]&lt;br /&gt; All options are set to default values. The most interesting part is the &lt;span class=&quot;buttonPointer&quot;&gt;Profile - Target&lt;/span&gt; option. Here you can set up the execution environment. Possible options are:
#* Desktop profile - Run as Application
#* Desktop profile - Run as Applet
#* Desktop profile - Run with WebStart
#* Mobile Profile&lt;sup&gt;[[#switchingProfiles|[?]]]&lt;/sup&gt; - Run in Emulator
# Press &lt;span&gt;Run&lt;/span&gt; to start the application. The console window will appear notifying you about progress of execution. &lt;br /&gt;[[image: running_as_application.png|Running application]]

=== Building ===

Building in Eclipse is provided automatically by default. For more building options open the &lt;span class=&quot;menuNavigation&quot;&gt;Project&lt;/span&gt; menu

=== Configuration Options ===

# Right-click the project in the &lt;span class=&quot;eclipseView&quot;&gt;Package Explorer&lt;/span&gt;, and select &lt;span class=&quot;menuNavigation&quot;&gt;Properties&lt;/span&gt;. &lt;br /&gt;[[image: project_properties_menu.png|Menu: Project Properties]]
# The &lt;span class=&quot;eclipseView&quot;&gt;Properties&lt;/span&gt; dialog appears. Select &lt;span class=&quot;buttonPointer&quot;&gt;JavaFX Defaults&lt;/span&gt;. &lt;br /&gt;[[image: javafx_project_properties.png|Properties: JavaFX Defaults]]&lt;br /&gt; Here you can edit several default parameters used during the execution and deployment process of JavaFX Projects. For more information about the meaning of available options see the JavaFX Packager Documentation.

=== JavaFX Help ===

The plugin provides easy access to the JavaFX SDK documentation. You can invoke help by &lt;span class=&quot;menuNavigation&quot;&gt; Help &amp;gt; Java FX &amp;gt; JavaFX Script Documentation &lt;/span&gt; or press &lt;code&gt;Ctrl + F1&lt;/code&gt;&lt;br /&gt;[[image: help_button.png|JavaFX SDK Help]]

&lt;div class=&quot;footNotes&quot;&gt;

=== Footnotes: ===

* At any time you can setup or change the &lt;code&gt;JAVAFX_HOME&lt;/code&gt; variable by following these steps:
*# Open &lt;span class=&quot;menuNavigation&quot;&gt;Window &amp;gt; Preferences&lt;/span&gt;
*# Expand &lt;span class=&quot;menuNavigation&quot;&gt;Java &amp;gt; Build Path&lt;/span&gt; and select &lt;span class=&quot;buttonPointer&quot;&gt;Classpath Variables&lt;/span&gt;
*# Edit &lt;code&gt;JAVAFX_HOME&lt;/code&gt;
* You can switch profiles in SDK by following these steps:
*# Right click on project name. Select &lt;span class=&quot;menuNavigation&quot;&gt;Properties &amp;gt; Java Build Path &amp;gt; Libraries&lt;/span&gt;
*# Double click on &lt;span class=&quot;buttonPointer&quot;&gt;JavaFX System Library&lt;/span&gt;. The &lt;span class=&quot;eclipseView&quot;&gt;Edit Library&lt;/span&gt; dialog appears. Here you can set the profile to use. &lt;br /&gt;[[image: edit_javafx_system_library.png|Dialog: Edit JavaFX System Library]]

&lt;/div&gt;</text>
  <text-as-html>&lt;h1&gt;&lt;a name='Java_FX_for_Eclipse'&gt;&lt;/a&gt; Java FX for Eclipse &lt;/h1&gt;
&lt;div id='toc' class='toc'&gt;
           &lt;div id='toctitle' class='toc-title'&gt;
             &lt;span&gt;Contents&lt;/span&gt;
           &lt;/div&gt;
           &lt;div id='toccontents' class='toc-contents'&gt;&lt;ul&gt;&lt;li&gt;1 &lt;a href='#Java_FX_for_Eclipse'&gt; Java FX for Eclipse &lt;/a&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;1.1 &lt;a href='#Installation'&gt; Installation &lt;/a&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;1.1.1 &lt;a href='#Install_JavaFX_SDK'&gt; Install JavaFX SDK &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.1.2 &lt;a href='#Install_Eclipse'&gt; Install Eclipse &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.1.3 &lt;a href='#Install_Plugin'&gt; Install Plugin &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;1.2 &lt;a href='#Hello_World'&gt; Hello World &lt;/a&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;1.2.1 &lt;a href='#Creating_JavaFX_Project_and_Configuring_JavaFX_SDK'&gt; Creating JavaFX Project and Configuring JavaFX SDK &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.2.2 &lt;a href='#Adding_Files'&gt; Adding Files &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.2.3 &lt;a href='#Running'&gt; Running &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.2.4 &lt;a href='#Building'&gt; Building &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.2.5 &lt;a href='#Configuration_Options'&gt; Configuration Options &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;1.2.6 &lt;a href='#JavaFX_Help'&gt; JavaFX Help &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;
         &lt;/div&gt;&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h2&gt;&lt;a name='Installation'&gt;&lt;/a&gt; Installation &lt;/h2&gt;
&lt;h3&gt;&lt;a name='Install_JavaFX_SDK'&gt;&lt;/a&gt; Install JavaFX SDK &lt;/h3&gt;
&lt;p&gt;
Download JavaFX SDK for &lt;a class='external' href=&quot;http://java.sun.com/javafx/downloads&quot;&gt;Windows&lt;/a&gt; or &lt;a class='external' href=&quot;http://java.sun.com/javafx/downloads&quot;&gt;Mac Os X&lt;/a&gt;. Follow the installation instructions.

&lt;/p&gt;&lt;h3&gt;&lt;a name='Install_Eclipse'&gt;&lt;/a&gt; Install Eclipse &lt;/h3&gt;
&lt;p&gt;
The plugin requires Eclipse 3.4 or newer. We recommend downloading Eclipse IDE for Java EE Developers for &lt;a class='external' href=&quot;http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-win32.zip&quot;&gt;Windows&lt;/a&gt; or &lt;a class='external' href=&quot;http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/SR1/eclipse-jee-ganymede-SR1-macosx-carbon.tar.gz&quot;&gt;Mac OS X&lt;/a&gt;. Then follow the installation instructions.

&lt;/p&gt;&lt;h3&gt;&lt;a name='Install_Plugin'&gt;&lt;/a&gt; Install Plugin &lt;/h3&gt;
&lt;ol&gt;&lt;li&gt; Download plugin:
&lt;/li&gt;&lt;li&gt; &lt;a class='external' href=&quot;http://kenai.com/downloads/eplugin/com.sun.javafx.eclipse.feature-win32-win32-x86-1.0.zip&quot;&gt;com.sun.javafx.eclipse.feature-win32-win32-x86-1.0.zip&lt;/a&gt; for Windows
&lt;/li&gt;&lt;li&gt; &lt;a class='external' href=&quot;http://kenai.com/downloads/eplugin/com.sun.javafx.eclipse.feature-macosx-carbon-x86-1.0.zip&quot;&gt;com.sun.javafx.eclipse.feature-macosx-carbon-x86-1.0.zip&lt;/a&gt; for Mac OS X
&lt;/li&gt;&lt;li&gt; Unzip into the eclipse installation directory
&lt;/li&gt;&lt;li&gt; There should be new files in &lt;code&gt;&lt;i&gt;ECLIPSE_ROOT/&lt;/i&gt;plugins&lt;/code&gt; and &lt;code&gt;&lt;i&gt;ECLIPSE_ROOT/&lt;/i&gt;features&lt;/code&gt;&lt;/li&gt;&lt;li&gt; Run Eclipse
&lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;&lt;a name='Hello_World'&gt;&lt;/a&gt; Hello World &lt;/h2&gt;
&lt;h3&gt;&lt;a name='Creating_JavaFX_Project_and_Configuring_JavaFX_SDK'&gt;&lt;/a&gt; Creating JavaFX Project and Configuring JavaFX SDK &lt;/h3&gt;
&lt;ol&gt;&lt;li&gt; Start eclipse. You will see the basic layout of the workbench.&lt;br /&gt;&lt;?link_for_image new_workbench_java.png|New empty workbench?&gt;&lt;/li&gt;&lt;li&gt; In the &lt;span class=&quot;eclipseView&quot;&gt;Package Explorer&lt;/span&gt; view right-click and select &lt;span class=&quot;menuNavigation&quot;&gt;New &amp;gt; Java Project&lt;/span&gt;&lt;br /&gt;&lt;?link_for_image create_new_java_project.png|New Java Project menu?&gt;&lt;/li&gt;&lt;li&gt; Create a new Java&lt;sup&gt;TM&lt;/sup&gt; project. &lt;br /&gt;&lt;?link_for_image new_project_wizard_step1.png|New empty workbench?&gt;&lt;/li&gt;&lt;li&gt; Name it &lt;span class=&quot;userEnter&quot;&gt;MyJavaFXProject&lt;/span&gt; and press the &lt;span class=&quot;buttonPointer&quot;&gt;Finish&lt;/span&gt; button. The new project appears in the &lt;span class=&quot;eclipseView&quot;&gt;Package Explorer&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image new_project_wizard_result.png|New project created?&gt;&lt;/li&gt;&lt;li&gt; Right-click on the newly created project and select &lt;span class=&quot;menuNavigation&quot;&gt;JavaFX &amp;gt; Add JavaFX Nature&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image add_javafx_nature.png|Add JavaFX nature to Java Project?&gt;&lt;/li&gt;&lt;li&gt; The &lt;span class=&quot;eclipseView&quot;&gt;JavaFX&lt;/span&gt; perspective is activated. If this is first time you are adding the JavaFX nature to a Java Project you will be asked to set the &lt;code&gt;JAVAFX_HOME&lt;/code&gt; property. &lt;br /&gt;&lt;?link_for_image missing_javafx_sdk_message.png|Error, JavaFX SDK home not set up.?&gt;&lt;br /&gt; To set up the &lt;code&gt;JAVAFX_HOME&lt;/code&gt; property, follow these steps:
&lt;ol&gt;&lt;li&gt; Press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on message dialog. No thanks, I prefer &lt;span class=&quot;buttonPointer&quot;&gt;&lt;a href='#IWantSelectCancel' class='internal'&gt;Cancel&lt;/a&gt;&lt;/span&gt; button.
&lt;/li&gt;&lt;li&gt; You should see the below dialog with &lt;code&gt;JAVAFX_HOME&lt;/code&gt; set to (empty) value. &lt;br /&gt;&lt;?link_for_image preferences_setup_javafx_sdk_path.png|Preferences: Classpath Variables?&gt;&lt;/li&gt;&lt;li&gt; Press &lt;span class=&quot;buttonPointer&quot;&gt;Edit...&lt;/span&gt; button on the right side to bring up the edit window. &lt;br /&gt;&lt;?link_for_image edit_variable_entry.png|Edit classpath variable?&gt;&lt;/li&gt;&lt;li&gt; Press the &lt;span class=&quot;buttonPointer&quot;&gt;Folder...&lt;/span&gt; button and select the installation folder of the JavaFX SDK. &lt;br /&gt;&lt;?link_for_image folder_selection_javafs_sdk_root_folder.png|Select instalation folder of JavaFX SDK?&gt;&lt;/li&gt;&lt;li&gt; Press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on &lt;span class=&quot;eclipseView&quot;&gt;Folder Selection&lt;/span&gt; dialog, press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on &lt;span class=&quot;eclipseView&quot;&gt;Edit Variable Entry&lt;/span&gt; dialog. &lt;br /&gt;&lt;?link_for_image preference_setup_result.png|Result of setting JAVAFX_HOME property?&gt;&lt;/li&gt;&lt;li&gt; Press &lt;span class=&quot;buttonPointer&quot;&gt;OK&lt;/span&gt; on &lt;span class=&quot;eclipseView&quot;&gt;Preferences&lt;/span&gt; dialog. The &lt;code&gt;JAVAFX_HOME&lt;/code&gt; variable has been set. If you decided to select the &lt;span class=&quot;buttonPointer&quot;&gt;Cancel&lt;/span&gt; button on the error dialog you will skip this setup and the system will never ask you for this again. To set this up later just &lt;a href='#sorryISelectCancel' class='internal'&gt;follow these instructions&lt;/a&gt;.
&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; Voila! you have created your first JavaFX Project. &lt;br /&gt;&lt;?link_for_image javafx_perspective_overview.png|Opened JavaFX Perspective with Java Project with JavaFX nature?&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;a name='Adding_Files'&gt;&lt;/a&gt; Adding Files &lt;/h3&gt;
&lt;ol&gt;&lt;li&gt; Expand &lt;span class=&quot;userEnter&quot;&gt;MyJavaFXProject&lt;/span&gt;. Left click on &lt;span class=&quot;folderId&quot;&gt;src&lt;/span&gt; folder. Then select &lt;span class=&quot;menuNavigation&quot;&gt;New &amp;gt; Package&lt;/span&gt; and type into the &lt;span class=&quot;buttonPointer&quot;&gt;Name&lt;/span&gt; field the package name &lt;span class=&quot;userEnter&quot;&gt;com.sun.eclipse.example&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image create_new_package.png|Adds new Empty Script file into folder.?&gt;&lt;/li&gt;&lt;li&gt; Left click on &lt;span class=&quot;folderId&quot;&gt;src/com.sun.eclipse.example&lt;/span&gt; folder. Then select &lt;span class=&quot;menuNavigation&quot;&gt;New &amp;gt; Empty Script&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image new_file_empty_script_menu.png|Adds new Empty Script file into folder.?&gt;&lt;/li&gt;&lt;li&gt; The &lt;span class=&quot;eclipseView&quot;&gt;New File&lt;/span&gt; wizard will appear. Type &lt;span class=&quot;userEnter&quot;&gt;Main&lt;/span&gt; into the &lt;span class=&quot;buttonPointer&quot;&gt;Name&lt;/span&gt; field. &lt;br /&gt;&lt;?link_for_image new_file_wizard.png|New file wizzard?&gt;&lt;/li&gt;&lt;li&gt; Press the &lt;span class=&quot;buttonPointer&quot;&gt;Finish&lt;/span&gt; button and an empty new JavaFX script will be created. &lt;br /&gt;&lt;?link_for_image new_file_result.png|New empty FX script?&gt;&lt;/li&gt;&lt;li&gt; Let's focus on &lt;span class=&quot;eclipseView&quot;&gt;Snippets&lt;/span&gt; view. There are a lot of code snippets to help you develop your application. Expand &lt;span class=&quot;buttonPointer&quot;&gt;Applications&lt;/span&gt; and select &lt;span class=&quot;eclipseView&quot;&gt;Stage&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image snippets_applications.png|Snippets View?&gt;&lt;/li&gt;&lt;li&gt; Drag and drop a &lt;span class=&quot;buttonPointer&quot;&gt;Stage&lt;/span&gt; node into the editor window. The &lt;span class=&quot;eclipseView&quot;&gt;Insert Template: Stage&lt;/span&gt; dialog appears. Change the value of the title variable to &lt;span class=&quot;userEnter&quot;&gt;Hello World!&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image drag_stage_into_editor.png|Result after drop?&gt;&lt;/li&gt;&lt;li&gt; Press the &lt;span class=&quot;buttonPointer&quot;&gt;Insert&lt;/span&gt; button to insert the resulting template into the source code. &lt;br /&gt;&lt;?link_for_image result_after_drop_stage.png|Result in editor?&gt;&lt;/li&gt;&lt;li&gt; &lt;span class=&quot;scream&quot;&gt;Mission accomplished, Sir!&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;a name='Running'&gt;&lt;/a&gt; Running &lt;/h3&gt;
&lt;p&gt;
Running the application in Eclipse is extremely easy.

&lt;/p&gt;&lt;ol&gt;&lt;li&gt; Press the &lt;span class=&quot;buttonPointer&quot;&gt;Run&lt;/span&gt; button on the toolbar to launch the application. &lt;br /&gt;&lt;?link_for_image run_file_icon_detail.png|Run icon?&gt;&lt;/li&gt;&lt;li&gt; If you are running for the first time the &lt;span class=&quot;eclipseView&quot;&gt;Edit Configuration&lt;/span&gt; dialog appears. &lt;br /&gt;&lt;?link_for_image runnig_configuration.png|Configuration?&gt;&lt;br /&gt; All options are set to default values. The most interesting part is the &lt;span class=&quot;buttonPointer&quot;&gt;Profile - Target&lt;/span&gt; option. Here you can set up the execution environment. Possible options are:
&lt;ul&gt;&lt;li&gt; Desktop profile - Run as Application
&lt;/li&gt;&lt;li&gt; Desktop profile - Run as Applet
&lt;/li&gt;&lt;li&gt; Desktop profile - Run with WebStart
&lt;/li&gt;&lt;li&gt; Mobile Profile&lt;sup&gt;&lt;a href='#switchingProfiles' class='internal'&gt;[?&lt;/a&gt;]&lt;/sup&gt; - Run in Emulator
&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Press &lt;span&gt;Run&lt;/span&gt; to start the application. The console window will appear notifying you about progress of execution. &lt;br /&gt;&lt;?link_for_image running_as_application.png|Running application?&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;a name='Building'&gt;&lt;/a&gt; Building &lt;/h3&gt;
&lt;p&gt;
Building in Eclipse is provided automatically by default. For more building options open the &lt;span class=&quot;menuNavigation&quot;&gt;Project&lt;/span&gt; menu

&lt;/p&gt;&lt;h3&gt;&lt;a name='Configuration_Options'&gt;&lt;/a&gt; Configuration Options &lt;/h3&gt;
&lt;ol&gt;&lt;li&gt; Right-click the project in the &lt;span class=&quot;eclipseView&quot;&gt;Package Explorer&lt;/span&gt;, and select &lt;span class=&quot;menuNavigation&quot;&gt;Properties&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image project_properties_menu.png|Menu: Project Properties?&gt;&lt;/li&gt;&lt;li&gt; The &lt;span class=&quot;eclipseView&quot;&gt;Properties&lt;/span&gt; dialog appears. Select &lt;span class=&quot;buttonPointer&quot;&gt;JavaFX Defaults&lt;/span&gt;. &lt;br /&gt;&lt;?link_for_image javafx_project_properties.png|Properties: JavaFX Defaults?&gt;&lt;br /&gt; Here you can edit several default parameters used during the execution and deployment process of JavaFX Projects. For more information about the meaning of available options see the JavaFX Packager Documentation.
&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;a name='JavaFX_Help'&gt;&lt;/a&gt; JavaFX Help &lt;/h3&gt;
&lt;p&gt;
The plugin provides easy access to the JavaFX SDK documentation. You can invoke help by &lt;span class=&quot;menuNavigation&quot;&gt; Help &amp;gt; Java FX &amp;gt; JavaFX Script Documentation &lt;/span&gt; or press &lt;code&gt;Ctrl + F1&lt;/code&gt;&lt;br /&gt;&lt;?link_for_image help_button.png|JavaFX SDK Help?&gt;

&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;footNotes&quot;&gt;

&lt;h3&gt;&lt;a name='Footnotes:'&gt;&lt;/a&gt; Footnotes: &lt;/h3&gt;
&lt;ul&gt;&lt;li&gt; At any time you can setup or change the &lt;code&gt;JAVAFX_HOME&lt;/code&gt; variable by following these steps:
&lt;ol&gt;&lt;li&gt; Open &lt;span class=&quot;menuNavigation&quot;&gt;Window &amp;gt; Preferences&lt;/span&gt;&lt;/li&gt;&lt;li&gt; Expand &lt;span class=&quot;menuNavigation&quot;&gt;Java &amp;gt; Build Path&lt;/span&gt; and select &lt;span class=&quot;buttonPointer&quot;&gt;Classpath Variables&lt;/span&gt;&lt;/li&gt;&lt;li&gt; Edit &lt;code&gt;JAVAFX_HOME&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; You can switch profiles in SDK by following these steps:
&lt;ol&gt;&lt;li&gt; Right click on project name. Select &lt;span class=&quot;menuNavigation&quot;&gt;Properties &amp;gt; Java Build Path &amp;gt; Libraries&lt;/span&gt;&lt;/li&gt;&lt;li&gt; Double click on &lt;span class=&quot;buttonPointer&quot;&gt;JavaFX System Library&lt;/span&gt;. The &lt;span class=&quot;eclipseView&quot;&gt;Edit Library&lt;/span&gt; dialog appears. Here you can set the profile to use. &lt;br /&gt;&lt;?link_for_image edit_javafx_system_library.png|Dialog: Edit JavaFX System Library?&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/p&gt;</text-as-html>
  <updated-at type="datetime">2008-12-12T00:56:19Z</updated-at>
  <wiki-id type="integer">2206</wiki-id>
</page>
