syntheticafx.jar
. The naming
convention for theme libraries is syntheticaFX[themeName]
. So syntheticaFXStandard.jar
stands for
the Synthetica Standard theme and syntheticaFXModena.jar
for the Modena theme.SyntheticaFXModena provides extensions for the basic JavaFX/Modena theme. These are required to fully support SyntheticaFX components like dialogs, internal frames, window decoration, validation and more.
A theme can be instantiated directly or by calling SyntheticaFX#init(String)
with theme class name as parameter.
SyntheticaFX#getVersion()
provides some version info of the theme. SyntheticaFX#getSyntheticaFXVersion()
returns the SyntheticaFX core version.
public class Demo extends Application {
@Override
public void start(Stage primaryStage){
// instantiation by class name
SyntheticaFX theme = SyntheticaFX.init("syntheticafx.theme.standard.SyntheticaFXStandard");
// direct instantiation
//SyntheticaFX theme = new SyntheticaFXStandard().init();
//SyntheticaFX theme = new SyntheticaFXModena().init();
System.out.println(theme);
System.out.println(theme.getVersion());
...
public class Demo extends Application {
@Override
public void start(Stage primaryStage){
new SyntheticaFXModena().init();
Scene scene = new Scene(new RootPane(primaryStage, createContent()));
primaryStage.setScene(scene);
...
primaryStage.show();
}
...
public class Demo extends Application {
@Override
public void start(Stage primaryStage){
new SyntheticaFXStandard().init();
Scene scene = new Scene(new RootPane(primaryStage, createContent()));
primaryStage.setScene(scene);
...
primaryStage.show();
}
...