DaBoss
DaBoss

Reputation: 73

How to remove this extra space in the tabPane in JavaFX?

This is the case right now and I would like to remove it.

This is the extra space in the tab pane next to the last tab option. I am using Scenebuilder to design the app.

Upvotes: 0

Views: 961

Answers (1)

Ala Eddine Menai
Ala Eddine Menai

Reputation: 2870

This extra space depends with tab pane header ,you have a way to hide it using css

.tab-header-background {
    -fx-background-color:transparent
}

.tab-pane{
    -fx-padding: 0 -1 -1 0
}

The result is:remove extra space from tabPane

Upvotes: 1

Related Questions