Anyone know how to remove tab selection border?
I mean this one:
It's not so clear to see but if you focus you can see a gray (should be blue I think) border around presentation.
Anyone knows how to remove it?
Asked
Active
Viewed 487 times
0

loryruta
- 111
- 3
- 9
-
Well, is that really matter? It's thin anyway. – Fevly Pallar Jan 15 '17 at 10:16
-
1Might be an issue with CSS. Please add all relevant code to your question. You might also check out your application with [ScenecView](http://fxexperience.com/scenic-view/) – hotzst Jan 15 '17 at 11:01
1 Answers
1
Try the following in your external CSS file:
.tab-pane > .tab-header-area > .headers-region > .tab {
-fx-background-insets: 0 ;
-fx-background-radius:0;
}
.tab-pane > .tab-header-area > .headers-region > .tab {
-fx-background-color: -fx-body-color; /* or your own chosen color: this is default */
}
You can find the default CSS settings by extracting the modena.css
file from the jfxrt.jar
file (in your JDK's jre/lib/ext
folder): modena.css
is in com/sun/javafx/scene/control/skin/modena
, or by browsing the source code (current version at time of writing here).

James_D
- 201,275
- 16
- 291
- 322