0

I am trying out JavaFX and I used JFoenix library to incorporate material design in the application.

All the other controls I added from JFoenix has the material look, but JFXTreeTableView does not have the material look shown in the project github page. The table looks the same as the default JavaFX TableView.

Following is a screenshot of the JFXTreeTableView in my app.

enter image description here

I have my own stylesheet added to the root node of the scene. It does not seem to have any impact to this issue since when I remove the custom stylesheet, the look of the JFXTreeTableView doesn't change.

Does anyone has any clue why the styles aren't applied?

Lahiru Chandima
  • 22,324
  • 22
  • 103
  • 179

1 Answers1

1

Within JFoenix Demo application,

custom stylesheet for JFXTreeTableView is contained and applied like this.

scene.getStylesheets().add(TreeTableDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());

enter image description here

Applying to the root node also works.

scene.getRoot().getStylesheets().add(TreeTableDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());

If your way was different, try it out please.

monolith52
  • 886
  • 2
  • 6
  • 9