Beruflich Dokumente
Kultur Dokumente
http://www.cs.nott.ac.uk/~bai/teaching/g52gui/tutorials.html
JavaFX
JavaFX is a built in Java API for creating
content-rich user interface applications
Designed to replace Swing libraries as main
GUI library
though Swing is still available
Integrated with main Java so cross-library
linking possible
Can integrate with external programs such as
Scene Builder
Now in version 8, released as part of Java 8
Scene Builder 2
Program for designing interfaces
Uses drag-and-drop features to create
components in your application
Allows to set properties and callbacks of
individual features
Can setup link to JavaFX Controller
class
Plugins allow seamless linking with
Eclipse
Scene Builder 2
Getting JavaFX and Scene Builder
Setup
Check default jdk is v1.8.0 or above
Run Eclipse
To install e(fx)clipse plugin:
Help > Install New Software
Add Repository: http://download.eclipse.org/
efxclipse/updates-released/1.0.0/site
Check e(fx)clipse IDE to install
Confirm and restart Eclipse
Link Scene Builder to Eclipse
Install Scene Builder 2
it is already installed on
lab machines
Locate the
scenebuilder.exe file
In Eclipse, open the
Preferences pane
Under JavaFX, set the
Scene Builder
executable path to
where your .exe is
Example JavaFX Types
Classes UI Layouts