B4J Question TableView lost focus color lightblue

Discussion in 'B4J Questions' started by sigster, Apr 8, 2015.

Similar threads

B4J Tutorial TableView Tutorial
B4J Tutorial DBUtils Example
B4J Question TableView cell alignment and color
B4J Question TableView Header color
B4J Tutorial RDC client
  1. sigster

    sigster Active Member Licensed User

    Hi

    when I select record in TableView I change the color in CSS file
    then I select textbox the record I select in TableView get the color lightblue

    how can I change TableView color lightblue when TableView lost focus

    Regards
    Sigster
     
  2. sigster

    sigster Active Member Licensed User

    Google :)


    Code:
    .table-row-cell:filled:focused:selected {
        -fx-background-color: red;
        -fx-background-insets: 
    012;
        -fx-background: -fx-accent;
        -fx-text-fill: -fx-selection-bar-text;
    }
     
    Erel likes this.
  3. rwblinn

    rwblinn Well-Known Member Licensed User

    Hi,

    attached an example based on previous TableView Row Selection Styling but then extended with TableView Cell Selection Styling.

    Thanks for bringing up.
     

    Attached Files:

  4. sigster

    sigster Active Member Licensed User

    Thanks rwblinn
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice