Naoghuman / app-yin-yang

The app Yin-Yang is a little JavaFX application which demonstrate some nice JavaFX features like borderless application, multilingualism, animations aso..
GNU General Public License v3.0
12 stars 1 forks source link
java java-8 javafx javafx-application maven multilingual netbeans netbeans-ide yinyang

Yin-Yang

Build Status license: GPL v3 GitHub release

Intention

The app Yin-Yang is a little JavaFX & Maven desktop application which demonstrate some nice JavaFX features like borderless application, multilingualism, animations aso..

Image: Some snapshots
Intention_Screenshoot_v0.8.0_2018-11-25_07-59.png

Content

Features

TODO

Borderless transparent application

In JavaFX it's really simple to create a borderless application with transparent background color.

In the first step the background color from the Scene needs to set to transparent.

@Override
public void start(Stage primaryStage) throws Exception {
    ...
    final Scene scene = new Scene(view.getView(), 330.0d, 330.0d);
    scene.setFill(Color.TRANSPARENT);
    ...
}

In the second step the style from the Stage need to be adjusted.

@Override
public void start(Stage primaryStage) throws Exception {
    ...
    // Defines a normal Stage style with a solid white background and platform decorations.
    stage.initStyle(StageStyle.DECORATED);

    // Defines a Stage style with a solid white background and no decorations.
    stage.initStyle(StageStyle.UNDECORATED);

    // Defines a Stage style with a transparent background and no decorations.
    stage.initStyle(StageStyle.TRANSPARENT);
    ...
}

Image: Demonstration from different StageStyles From left to right: decorated, undecorated, transparent
StageStyles_v0.9.0_2018-11-28_22-13.png

Multilingualism application

TODO

Always on top

TODO

Animations

TODO

Action event handling

TODO

Simple data storage

TODO

Installation

Contribution

License

The project Yin-Yang is licensed under General Public License 3.0.

Autor

The project Yin-Yang is maintained by me, Peter Rogge. See Contact.

Contact

You can reach me under peter.rogge@yahoo.de.