title: How to make cell color change on double click tornadofx
body: <p>I need to make cells color in my <code>tableview</code> be changed by right mouse click. My code:</p>
  
  <pre><code>cellFormat { _ -&gt;
      graphicProperty().addListener { _ -&gt;
          setOnMouseClicked {
              if (it.button == MouseButton.SECONDARY)
                  style {
                      backgroundColor += c("darkred")
                  }
          }
      }
  }
  </code></pre>
  
  <p>second variant:</p>
  
  <pre><code>cellFormat { _ -&gt;
                  style {
                  setOnMouseClicked { button -&gt;
                      if (button.button == MouseButton.SECONDARY) {
                          backgroundColor += c("darkred")
                      }
                  }
              } }
  </code></pre>
  
  <p>I understand that I need to make cell format listener, however I tried different ways and have no result. Can anyone give me a tip?</p>