blob: 1f5991c30a8a32e880517b37c723a29c9a23cf9c [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>New JavaFX Application (FXML)</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="org.netbeans.modules.javafx2.project.PanelConfigureProject_FXML" name="org.netbeans.modules.javafx2.project.PanelConfigureProject_FXML"></a></p>
<div id="NBCSH2346"><!-- infolevel="all" infotype="General" --><a id="sthref321" name="sthref321"></a>
<h1>New JavaFX Application (FXML)</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>Use to create a new JavaFX application either with or without FXML.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG400">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>In the Name and Location page, you have to set the following properties:</p>
<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t14">Element</th>
<th align="left" valign="bottom" id="r1c2-t14">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t14" headers="r1c1-t14">
<p>Project Name</p>
</td>
<td align="left" headers="r2c1-t14 r1c2-t14">Specifies the display name of the project. This name is also used to create the project folder.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t14" headers="r1c1-t14">
<p>Project Location</p>
</td>
<td align="left" headers="r3c1-t14 r1c2-t14">Specifies the folder where you want to store the project metadata and source code. When you create an empty Java project, you cannot store the project folder and the project source code in separate locations like you can with projects from existing source code.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t14" headers="r1c1-t14">
<p>Project Folder</p>
</td>
<td align="left" headers="r4c1-t14 r1c2-t14">Specifies the folder where you want to store the project metadata and source code. The folder is a concatenation of the project location and the project name.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t14" headers="r1c1-t14">
<p>JavaFX Platform</p>
</td>
<td align="left" headers="r5c1-t14 r1c2-t14">Selects the JavaFX-enabled Java platform from the drop-down list. If the Java platform you select is not JavaFX-enabled, a warning appears at the bottom of the panel. If you have no JavaFX-enabled platforms, you must register a new Java platform.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG385">
<param name="text" value="<html><u>How?</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
<p>Click Manage Platforms.</p>
</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t14" headers="r1c1-t14">
<p>Manage Platforms</p>
</td>
<td align="left" headers="r6c1-t14 r1c2-t14">Opens the Java Platform Manager. You can enable JavaFX for a Java platform in the Platform Manager.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t14" headers="r1c1-t14">
<p>FXML name</p>
</td>
<td align="left" headers="r7c1-t14 r1c2-t14">Specifies the name of the primary FXML file. Note you can add more FXML files later.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r8c1-t14" headers="r1c1-t14">
<p>Use Dedicated Folder for Storing Libraries</p>
</td>
<td align="left" headers="r8c1-t14 r1c2-t14">Specifies a Libraries Folder where required compilation libraries are stored.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r9c1-t14" headers="r1c1-t14">
<p>Create Application Class</p>
</td>
<td align="left" headers="r9c1-t14 r1c2-t14">Specifies the package and name of the application class. You should enter the fully qualified name of the class without the .java extension (for example, <code dir="ltr">com.me.MyClass</code>).</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<p>When you click <b>Finish</b>, the project is created on your computer and opened in the Projects window. If you created an application class, this class opens in the editor. If you created an FXML application, the application's FXML file and controller class also open in the editor.</p>
<a id="NBCSH2355" name="NBCSH2355"></a>
<hr><p><b>Related Topics</b></p>
<p>Developing Applications with NetBeans IDE,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG370">
<param name="text" value="<html><u>&quot;Using Java Project Templates&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>Developing Applications with NetBeans IDE,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG465">
<param name="text" value="<html><u>&quot;Setting the Target JDK&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<!-- -->
<!-- Start Footer -->
<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>