Salman Arif
Salman Arif

Reputation: 105

Removing JavaFX Accordion Border

I'm working on a project and am theming a JavaFX application with CSS as I go. I'm having trouble removing the border around the Content of a JavaFX TitledPane in an Accordion. There appears to be 1px line at the bottom that I cannot seem to remove (screenshot: https://i.sstatic.net/CiINc.png).

Has anyone faced a similar issue before?

Upvotes: 0

Views: 2489

Answers (2)

A.Abdelhak
A.Abdelhak

Reputation: 140

.titled-pane > *.content {
    -fx-border-color: transparent;
}

Upvotes: 0

jewelsea
jewelsea

Reputation: 159436

accordion.setStyle("-fx-box-border: transparent;");

Reasoning behind why this works is explained in the answer to the similar question:

Upvotes: 4

Related Questions