Oracle FXML language source code
File type: Source code and script file
An FXML source file contains XML-based markup for defining a JavaFX user interface and its component objects.
File type category:
Source code and script file
Date updated: November 22, 2026
FXML is an XML-based markup language created by Oracle for defining user interfaces and object graphs in JavaFX applications.
An FXML document describes interface elements and their relationships. It can also connect those elements to a controller class that provides application behavior. JavaFX applications load the document to create the corresponding objects.
NetBeans and Eclipse can be used to work with FXML source on Windows, macOS, and Linux. FXML remains in use as part of JavaFX development.
Open an .fxml file in NetBeans or the Eclipse IDE to view and edit its XML-based source. Use the editor's text view if it does not open as source automatically.
FXML is source code, not a compiled application, and has no general-purpose conversion that preserves its role in a JavaFX project. Keep it as an .fxml file when using it in the application.
To see the interface it describes, run a JavaFX application that loads the FXML document. The displayed interface is runtime output, not a converted replacement file.
Software applications that can open fxml files:
Apple macOS / Mac OS X
Linux/Unix
Software applications that can edit fxml files:
Apple macOS / Mac OS X
Linux/Unix
Software capable of saving fxml files:
Apple macOS / Mac OS X
Linux/Unix
Software apps that create fxml files:
Apple macOS / Mac OS X
Linux/Unix