Java

­
18 03, 2015

CalendarFX (EA) for JavaFX 8

By |March 18th, 2015|CalendarFX, Java, JavaFX|4 Comments

I am happy to announce the immediate availability of CalendarFX for JavaFX 8 (EA), a framework for creating professional calendar user interfaces for any type of application. The framework provides views for showing calendar entries for a given day, week, month, or year. Several sources (e.g. Google calendar) can be registered with each source consisting [...]

18 02, 2015

JavaFX Tip 18: Path Clipping

By |February 18th, 2015|ControlsFX, Java, JavaFX, Tips & Tricks|3 Comments

I recently noticed that the PopOver control, which I committed to the ControlsFX project, does not properly clip its content. It became obvious when I was working on the accordion popover for the FlexCalendarFX framework. Whenever the last titled pane was expanded the bottom corners were no longer rounded but square. After placing a red [...]

6 02, 2015

JavaFX Tip 17: Animated Workbench Layout with AnchorPane

By |February 6th, 2015|Java, JavaFX, Tips & Tricks|4 Comments

I recently had to implement a layout for an application where the menu area and the status area could be hidden or shown with a slide-in / slide-out animation based on whether the user was logged in or not. The following video shows the the layout in action: Update: a new video shows even [...]

22 07, 2014

JavaFX Tip 12: Define Icons in CSS

By |July 22nd, 2014|Java, JavaFX, Tips & Tricks|6 Comments

When you are a UI developer coming from Swing like me then there is a good chance that you are still setting images / icons directly in your code. Most likely something like this: import javafx.scene.control.Label; import javafx.scene.image.ImageView; public class MyLabel extends Label { public MyLabel() { setGraphic(new ImageView(MyLabel.class. getResource("image.gif").toExternalForm())); } } In this [...]

18 07, 2014

JavaFX Tip 10: Custom Composite Controls

By |July 18th, 2014|ControlsFX, Java, JavaFX, Tips & Tricks|4 Comments

Writing custom controls in JavaFX is a simple and straight forward process. A control class is needed for controlling the state of the control (hence the name). A skin class is needed for the apperance of the control. And more often than not a CSS file for customizing the apperance. A common approach for controls is [...]

17 07, 2014

JavaFX Tip 9: Do Not Mix Swing / JavaFX

By |July 17th, 2014|Java, JavaFX, Tips & Tricks|4 Comments

The JavaFX team has tried very hard to convince us that migrating from Swing to JavaFX is easy because of the option to embed Swing content in a JavaFX UI and vice versa. I must admit that I never tried it myself but based on the feedback I am getting from my customers I can [...]

14 07, 2014

JavaFX Tip 8: Beauty is Skin Deep

By |July 14th, 2014|FlexGantt, Java, JavaFX, Tips & Tricks|2 Comments

If you are developing a UI framework for JavaFX, then please make it a habit to always split your custom controls into a control class and a skin class. Coming from Swing myself this was not obvious to me right away. Swing also uses an MVC concept and delegates the actual component rendering to a [...]

11 07, 2014

JavaFX Tip 7: Use CSS Color Constants / Derive Colors

By |July 11th, 2014|FlexGantt, Java, JavaFX, Tips & Tricks|4 Comments

When working on FlexCalendarFX I got to the point where I had to define a set of colors to visualize the controls for different calendars in different colors. And not just one color per calendar but several: a background and a text color for deselected / selected / hover states. The  colors were used in several places [...]

11 07, 2014

JavaFX Tip 6: Use Transparent Colors

By |July 11th, 2014|FlexGantt, Java, JavaFX, Tips & Tricks|2 Comments

Picking the right colors for your user interface elements is always a great challenge, but it is even more challenging when you develop reusable framework controls where you as a developer have no control over the look and feel of the application using them. While you might always add elements on top of the default gray background [...]

10 07, 2014

JavaFX Tip 5: Be Observable

By |July 10th, 2014|FlexGantt, Java, JavaFX, Tips & Tricks|3 Comments

Even in this time of total NSA surveillance it is still a good idea to implement your JavaFX controls with observability in mind. This is easy to achieve in JavaFX especially compared to Swing. The Old Days Coming from Swing I was used to spending a lot of energy and time on making custom controls [...]