ShichimiFX – Yet another JavaFX utils lib

shichimi

ShichimiFX is a small lib containing helper/util classes extracted from my other projects which I commonly need. The lib will be extended if it turns out that I need a util class in more than one project…
(Shichimi is my favorite Japanese spice mixture)

And yes it also yet another utils lib containing (among others):

For further details refer to the ShichimiFX Bitbucket Repo

 

Maven

<dependency>
  <groupId>de.jensd</groupId>
  <artifactId>shichimifx</artifactId>
  <version>1.0.0</version>
</dependency>

FontAwesomeFX 8.0.7/8.0.8 released

UPDATE: In 8.0.7 I forgot to replace the TTF! So 8.0.7 still contains the 4.0.1 font. Some icons may not be displayed with 8.0.7. Have fixed this issue with fontawesomefx-8.0.8.

NavigationButtonsI have updated FontAwesomeFX and released version 8.0.7.
A few days ago the FontAwesome 4.1.0 was released with 70+ additional icons (FontAwesome now contains 439 icons).

Download Binaries
Sources @ Bitbucket

Maven Artifact:

<dependency>
  <groupId>de.jensd</groupId>
  <artifactId>fontawesomefx</artifactId>
  <version>8.0.8</version>
</dependency>

FontAwesomeFX: 4.0.1 support

Refer for latest updates here.

Hi,

I just have updated FontAwesomeFX to support currently released FontAwesome 4.0.1 with all of it’s 369 Icons.

Please note that some enum values have been changed, e.g. former AwesomeIcon.SIGNOUT is now AwesomeIcon.SIGN_OUT.

Also I have added some convenience methods to the helper class:

AwesomeDude.setIcon(TreeItem treeItem, AwesomeIcon icon) {
AwesomeDude.setIcon(TreeItem treeItem, AwesomeIcon icon, String iconSize)

Tip: Navigation Buttons

NavigationButtons

Add CSS and assign the class to a Button or ToggleButton:

.navigation-button{
    -fx-font-size: 0.9em;
    -fx-background-color: transparent;
    -fx-graphic-text-gap: 0px;
    -icons-color: gray;
    -fx-text-fill: gray;
    -fx-effect: innershadow( three-pass-box , rgba(0,0,0,0.4) , 6, 0.0 , 0 , 2 );
}

.navigation-button:pressed:hover{
    -icons-color: black;
    -fx-text-fill: black;
    -fx-effect: innershadow( three-pass-box , rgba(0,0,0,0.7) , 6, 0.0 , 0 , 2 );
}

.navigation-button:hover{
    -fx-effect: innershadow( three-pass-box , rgba(0,0,0,0.7) , 6, 0.0 , 0 , 2 );
}

Set FontAwesome-Icons:

AwesomeDude.setIcon(configurationButton, AwesomeIcon.GEAR, viewContext.getUiConfiguration().getIconEmSize(), ContentDisplay.TOP);
AwesomeDude.setIcon(aboutButton, AwesomeIcon.INFO, viewContext.getUiConfiguration().getIconEmSize(), ContentDisplay.TOP);
AwesomeDude.setIcon(exitButton, AwesomeIcon.SIGN_OUT, viewContext.getUiConfiguration().getIconEmSize(), ContentDisplay.TOP);

Source
@ Bitbucket

Maven

<dependency>
  <groupId>de.jensd</groupId>
  <artifactId>fontawesomefx</artifactId>
  <version>8.0.5</version>
</dependency>

Support for glyph font packs in ControlsFX 8.0.2
Since version 8.0.2 the ControlsFX-Project has support for glyph font packs.

Using ‘Font Awesome’ Icons with JavaFX [Update 2]

Refer for latest updates here.

For a more convenient usage I have created a Maven Artifact of my little project (should be available via Maven Central).

Dependency to WebJar Maven-Repo is included, thus you just have to add:

<dependency>
    <groupId>de.jensd</groupId>
    <artifactId>fontawesomefx</artifactId>
    <version>1.0.0</version>
</dependency>