javafx-2, remove focus highlighting via CSS -


I want to delete the blue border which focuses the tableview when this focus is on.

Enter image details here

I checked in caspian.css, that most components like buttons and textfield do something like this:

  .table-view: focus {-fx-background-color: -fx-focus -color, -fx-box-border, - fx-control-inner background; -fx-background-insets: -1.4, 0, 1; -fx- background-radius: 1.4, 0, 0; / *** / -fx-padding: 1; / * 0.083333em; * /}   

My question is on CSS, in the end. Can I override this pseudonym specification in my stylesheet instead of trying to change colors to transparent?

Yes you can do it in your stylesheet with the JavaFX CSS properties of your choice The same CSS selector defines:

  .table-view: focus {-fx-background-color: red / * or transparent or other favorite color * /, - fx-box -border, -fx-control-inner-background; -fx-background-insets: -1.4, 0, 1; -fx- background-radius: 1.4, 0, 0; / *** / -fx-padding: 1; / * 0.083333em; * /}    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -