Skip to content

jianoxbull/GNDecorator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version Release License

This project is part of the set of custom components created for JavaFx.

GNDecorator

GNDecorator is a simple decoration project for javaFx applications.
View Default

demo1

View Darkula

demo1

With gradient and image

demo1

Adaptable when the bar is moved

gif1

Full Screen animation

gif2

Basic structure

    root -> SstackPane
            body -> AnchorPane
                    top_left -> Path
                    top_right -> Path -- rotation 90°
                    bottom_left -> Path -- rotation 270°
                    bottom_right -> Path -- rotation 180°

Structure - by Scenic View

Structure

Full Screen animation

gif2

Constrotors

  GNDecorator decorator = new GNDecorator();

Setting content

    decorator.setContent(content);
    decorator.fullBody() // the content occupies all of size
    decorator.floatActions(); // the controls are float

Menus

    Menu menu = new Menu("File");
    menu.getItems().add(new MenuItem("Open"));
    menu.getItems().add(new MenuItem("Close"));
    decorator.addMenu(menu);
    decorator.addMenu(1, menu);// add with a index

Tittle

    decorator.setTitle("JavaFx Application");
    decorator.centralizeTitle(); // Centralize

Controls

    ButtonTest a1 = new ButtonTest("Button 1");
    decorator.addMenu(a1);
    decorator.addMenu(index, a1); // add with a index

About

Decoration for javafx applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 79.6%
  • CSS 20.4%