Jump to content

FXML

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Hervegirod (talk | contribs) at 12:35, 9 April 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

FXML
Developed byOracle Corporation
Initial releaseOctober 2011 (2011-10)
Type of formatUser interface markup language
Extended fromXML

FXML is a XML-based user interface markup language created by Oracle Corporation for defining the user interface of a JavaFX application.[1][2]

It provides a convenient alternative to constructing such graphs in procedural code, and is ideally suited to defining the user interface of a JavaFX application, since the hierarchical structure of an XML document closely parallels the structure of the JavaFX scene graph. However anything that is created or implemented in FXML can be expressed using JavaFX directly.

Example

The following shows the text "Hello World!".

<?import javafx.scene.control.Label?>
<Label text="Hello, World!"/>

See also

References

  1. ^ Meyer, David (2011-10-06). "JavaFX 2.0 arrives and heads for open source". ZDNet. Retrieved 2011-10-09. The update introduces a new XML-based markup language called FXML, which is aimed at defining user interfaces. Other scripting languages, such as Groovy, JRuby and Scala, can also be used to write apps in JavaFX 2.0, as can the Java development tools NetBeans and Eclipse.
  2. ^ Greg Brown (2011-08-15). "Introducing FXML" (PDF). Retrieved 2011-10-09.