javafx - css: How to change row color of a table after its been selected and clicked away -


i have .css when row selected fine.

row when clicked

however when click off row changes row color grey black font, there way edit css?

row when clicked off

.table-view {     -fx-base: transparent;     -fx-control-inner-background: transparent;     -fx-background-color: #507ca6;     -fx-padding: 5; }  .table-view .column-header-background {     -fx-background-color: transparent; }  .table-view .column-header, .table-view .filler {     -fx-size: 35;     -fx-border-width: 0 0 1 0;     -fx-background-color: transparent;     -fx-border-color: #b4d9fd;     -fx-border-insets: 0 10 1 0; }  .table-view .column-header .label {     -fx-font-size: 14pt;     -fx-font-family: "segoe ui light";     -fx-text-fill: white;     -fx-alignment: center-left;      -fx-opacity: 1; }  .table-view:focused .table-row-cell:filled:focused:selected {     -fx-background-color: #273d51; } 

any appreciated.

try this:

/* when control selected not focused */ .table-row-cell:filled:selected, .table-row-cell:filled > .table-cell:selected {     -fx-background: red; } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -