Kategorienarchiv: JavaFX

AquaFX: lessons learned (Part I)

During the work on AquaFX there were some obstacles that needed to be overcome. With some research, the CSS Reference Guide and the help of google, most answers definitely can be found, so please don’t be angry with me when those tips might be obvious for you. In this article I want to summarize information, so [...]

Designing JavaFX Business Applications (Part 2)

This is the second part of my series about JavaFX architecture and best practice for (business) application. You can find the first part about middleware here. In this post I will show you a simply and modern way to bind your data model to your view by using Context Dependency Injection (CDI). CDI?? What the [...]

Aquatecture

While Claudine is working on all the needed Skins for AquaFX I will use the time to show you some of the internal API stuff of AquaFX that Claudine has developed. Once the project is released you can easily style your complete application by just calling AquaFx.style(); This will set the CSS Styles for all [...]

sbt-fxml: The missing link between FXML and your code

Greetings web! I was invited to write a guest post here about a little JavaFX project I started not long ago: sbt-fxml. It’s a plugin for SBT and it tries hard to generate boring code for you so you don’t have to. It scans for FXML files – either hand written or created by Scene [...]

The native ones are not sleeping

As time goes by, there are lots of freshly skinned controls, which are waiting to be shown. So here comes a little “update post”.   New Components ComboBoxes ColorPickers ProgressIndicator Toggles & PillToggles Sliders and TabPanes   Trees Tables   TreeTables   Lists Toolbar   Since MacOS has some special Controls that are not in [...]

Assertions and Rules in MarvinFX

Today I added some new features to MarvinFX. For all basic property types (String, Number, Boolean, etc…) MarvinFX will provide methods to check some common assertions for this properties. All this methods will be part of the PropertySupervisor classes. Here is a short example that tests a String property: @Test public void test5() { TextField [...]

Use native Aqua icons in JavaFX

While planning AquaFX we found a way how to access Mac OS specific icons without using any closed APIs or Mac OS related classes. We wrapped this in a simple util class. While using this on a Mac you will receive images by the underlying OS. On any other OS the function will return “null”. [...]

Introducing MarvinFx

For all my current JavaFX work I need a simple test framework to check the behavior of controls or complete scenes. Since I’m working more and more with the Property API I mainly wanted to to test the properties and their behavior of controls and scenes. FEST is doing a great job for automated tests [...]

Update for the native ones

Since my project was accepted, I was keen on starting with the first components. Now I want to show you what is the result.  Remember the shutdown dialog? As Jonathan suggested, the whole project is realized in JavaFX 8. In the first step, the proof-of-concept dialog had to be migrated to be up-to-date again. Pretty [...]

Global Stylesheet for your JavaFX Application

You can style your JavaFX Scene by CSS as you can read here and here.All this examples show how to apply a specific Stylesheet to one Scene by using myScene.getStylesheets().add(“path/to/custom.css”); Inside the SceneGraph of this Scene all Nodes will use the defined Stylesheets. But while your Application grows you will normally have more than one Scene. [...]