java


Remove the glowing border from focused tab with CSS


I am trying to remove the blue glowing border, which apears when the pane is focused of a tab in a tabpane in my javaFX application. any idea on how to do this in css?
This is my current css:
.tab{
-fx-background-radius: 0;
-fx-background-color: derive(-fx-base, 0%);
-fx-background-insets: 0.3;
-fx-focus-color: XXXXXX;
}
.tab:hover{
-fx-background-color: derive(-fx-base, 20%);
}
.tab:selected{
-fx-background-color: derive(-fx-base, 60%);
}
but i dont know which value i should give focuse color to match the background derive(-fx-base, 60%) i can see a difference and if i set it to -fx-background-color i get an error
One way to achieve this is to set the border color to transparent.
.tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-fx-border-color: transparent;
}
You can also set the focus color and the faint focus color (used for the inset border) directly.
.tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
}
I used the specific class here, but it also works with the tab class.
.tab {
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
}
Try the following:
.tab-pane > .tab-header-area > .headers-region > .tab:selected
{
-fx-focus-color: transparent; //red;
}
I have never used javaFX, but in CSS you can remove that by doing...
a:focus{outline-color:transparent;}

Related Links

Can I get an instance of a class that implements an interface?
Finding the range of ints in a scanner
why i can interchange field values inside a class using class reference but can't interchange the references themselves
Is it okay to inherit classes in java even if it is not meant for that job
BlackBerry - get error code 411
how to create draggable toggle button in Android
Permutation of a 2 dimensional arraylist
Cast a String object to XMLNode object
how to resolve eclipse error Source not found
Can Mirth send JavaBeans on JMS?
How are Java interfaces used? [closed]
Using a external jar. No suitable driver found for jdbc:sqlserver
Java synchronizing a method in a class
Hibernate : refresh on detached object - weird behavior
Java program Not running in Eclipse [duplicate]
Make Graphics from JPanel visible outside JPanel

Categories

HOME
cakephp
compiler-construction
amazon-ec2
fft
spagobi
framework7
kalman-filter
enterprise-library-5
dacpac
numeral.js
mapserver
windows-azure-storage
designer
pythonanywhere
karma-jasmine
facebook-instant-articles
kudan
tdd
sparse-matrix
wpfdatagrid
internet-explorer-9
entitlements
quote
librato
google-rich-snippets
code-contracts
calibre
http-referer
mapdb
plsql-psp
devextreme
main
swift3.0.2
occlusion
starteam
android-fingerprint-api
document.write
ncalc
taffy
xml-documentation
pnotify
veracode
fancybox-2
forever
account-kit
parallel-data-warehouse
removechild
radtreelist
player
simplewebrtc
python-stackless
independentsoft
energy
historian
vhd
srand
tarjans-algorithm
embedded-code
android-listview
processmodel
ami
mmc
system32
device-orientation
operator-precedence
tween
websocket4net
code-access-security
typeof
htmlcleaner
multiprocessor
page-layout
aqtime
jmapviewer
soundtouch
coverflow
ril
gwt-rpc
mylyn
sharp-repository
kyotocabinet
browser-detection
labwindows
javax.script
table-footer
floating
subviews
gallio
zend-tool
nintendo-ds
text-coloring
zune
grid-system

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App