Home » Tag Archives: JavaFX (page 2)

Tag Archives: JavaFX

How to get rid of focus highlighting in JavaFX

javafx-logo

Today I was asked if I know a way to get rid of the focus-highlighting of JavaFX controls (respectively buttons):                   Most posts and tips regarding this issue suggest to add: .button:focused { -fx-focus-color: transparent; } But with this style, a glow like this is still left: To get rid of this ...

Read More »

Call to verify responsiveness of your JavaFX UIs

javafx-logo

Recently Jim Weaver installed my little picture indexing app “picmodo” for a demo on his Surface Pro and the GUI became a pice of junk. Obviously the basic font size of JavaFX on a Windows Tablet is to high:                 I assume, too absolute sizes and positions are not always the best idea, ...

Read More »

Swing and JavaFX: working with JFXPanel

javafx-logo

I soon will have to deal with JavaFX in a Swing based fat client – oh sorry, of course I meant “multi-layered rich-client”! So this brings me to have a look at the JFXPanel. The JFXPanel is a javax.swing.JComponent to embed JavaFX content into Swing-UIs. A JFXPanel can be used similar to a JPanel and can be accessed via the ...

Read More »

JavaFX Tip 15: ListView Autoscrolling

javafx-logo

I recently had to implement autoscrolling functionality for FlexGanttFX and thought that my solution might be useful for others. You find the basic concepts of it in the listing below. The main idea is that a background thread is used to adjust the pixel location of the virtual flow node used by the list view. The thread starts when a drag ...

Read More »

New Custom Control: TaskProgressView

javafx-logo

I have written a new custom control and commited it to the ControlsFX project. It is a highly specialized control for showing a list of background tasks, their current status and progress. This is actually the first control I have written for ControlsFX just for the fun of it, meaning I do not have a use case for it myself ...

Read More »

JavaFX Tip 14: StackPane Children – Hidden But Not Gone

javafx-logo

Another short tip: Swing provides a layout manager called CardLayout, which manages a set of components (cards) inside a container but always only shows one of them. The method CardLayout.show(Container, String) allows to switch between the components / the cards. The same behaviour can be accomplished in JavaFX by using the StackPane, adding several children (each using the entire width and ...

Read More »

JavaFX Tip 13: Study Modena CSS File

javafx-logo

This is the easiest and shortest tip so far. If you want to do any of the following things: learn how to use CSS make your custom controls look like the standard controls reuse an SVG path graphic used by a standard control (e.g. scrollbar arrows) figure out how to navigate the structure of the standard controls determine the color used ...

Read More »

Validation in java (javafx)

javafx-logo

Validation is one thing that’s missing from the core javafx framework. To fill in this gap there is already a 3rd party validation library that’s present in controlsfx. However there’s one issue I have with it: it wasn’t created with FXML in mind. That’s not to say it isn’t a good library, it just misses this detail and for me ...

Read More »

FX Playground

javafx-logo

Introduction FX Playground is a JavaFX-based prototyping tool or live editor that eliminates the step of compiling Java code. This concept isn’t new, for instance the Web world there are many HTML5 playgrounds that offer online editors that enable developers to quickly prototype or experiment with various JavaScript libraries. This allows the developer to focus on visualizations or UI details ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.