1
I would like the Tabpanel area that has no tab to have a border according to the image below.
Currently my Tabpanel is like this, no right edge of "Enter"
I would like it to be like this, but I do not know where to put edge instruction, without putting edge also on what is selected.
That’s my style code:
.tab-pane .tab-header-area .tab-header-background {
-fx-opacity: 0;
}
.tab-pane:top *.tab-header-area {
-fx-background-insets: 0, 0 0 1 0;
-fx-padding: 1px 1px 0px 0px;
}
.tab-pane
{
-fx-tab-min-width:90px;
}
.tab{
-fx-background-insets: 0 1 0 1,0,0;
-fx-min-width: 120px;
-fx-min-height: 23px;
-fx-border-width: 1 1 0 0;
-fx-border-style: solid;
-fx-border-color: #dbe2e8;
-fx-padding: 7 20 7 20;
}
.tab:selected .focus-indicator {
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
}
.tab-pane .tab:selected
{
-fx-background-color: #ffffff;
}
.tab-label {
-fx-alignment: center;
-fx-font-size: 12px;
-fx-font-weight: bold;
-fx-text-fill: #7d97ad;
-fx-font-family: Arial;
}
.tab:selected .tab-label {
-fx-alignment: center;
-fx-text-fill: #96b946;
}
I’m learning now, so I’m pretty much a Javafx layman.
take your style code to
.tab-pane .tab-header-area .tab-header-background
– Julio Cesar
@Juliocesar changed the style instead of taking and it worked, it was right there that I had to stir
– Sileno Brito