title: how to bold and change font size of the tableview item or row in javafx?
body: <p>In my project I'm using javafx and there is a <code>TableView</code> in which there are four columns i.e <code>source</code>, <code>target</code>, <code>score</code>, <code>date</code> and I want either a single word in the column or the whole row to be bold or italic and to change the font size.</p>
  
  <pre><code>public void readtextfile(String data) //data contains the location of the file
      {
  
          data1 = FXCollections.observableArrayList();
          tab = new Tab("new" + (tabPaneTableview.getTabs().size() + 1));//create a new tab every time loaddatabase() is called
          tabPaneTableview.getTabs().add(tab);//tab is added in tabpane
          tabPaneTableview.getSelectionModel().select(tab);//the particular tab is selected
          tv_new = new TableView&lt;&gt;();
          tc_id = new TableColumn&lt;File, Integer&gt;("Id");
          tc_source = new TableColumn&lt;File, String&gt;("Source");
          tc_target = new TableColumn&lt;File, String&gt;("Target");
          tc_score = new TableColumn&lt;File, String&gt;("Score");
          // tcUsername=new TableColumn&lt;File,String&gt;("Creation User");
          //tcCurrentdate=new TableColumn&lt;File,String&gt;("Date/Time");
          tcNote = new TableColumn&lt;File, String&gt;("Note");
          tcStatus = new TableColumn&lt;File, String&gt;("Status");
          //tcConfirm=new TableColumn&lt;File,String&gt;("Confirm");
          //tcLock=new TableColumn&lt;File,String&gt;("Lock");
          //tcStatus.getColumns().addAll(tcConfirm,tcLock);
          //tcPostag=new TableColumn&lt;ExcelFile,String&gt;("Pos Tag");
          tv_new.getColumns().addAll(tc_id, tc_source, tc_target, tc_score, tcNote, tcStatus);
          tab.setContent(tv_new);
         tv_new.setPrefHeight(250);
          tv_new.setRowFactory(new Callback&lt;TableView&lt;File&gt;, TableRow&lt;File&gt;&gt;() {
              @Override
              public TableRow&lt;File&gt; call(TableView&lt;File&gt; param) {
                  final TableRow&lt;File&gt; row = new TableRow&lt;File&gt;() {
                      @Override
                      protected void updateItem(File row, boolean empty) {
                          super.updateItem(row, empty);
                          if (!empty)
                              styleProperty().bind(Bindings.when(row.selectedProperty())
                                      .then("-fx-font-weight: bold; -fx-font-size: 16;")
                                      .otherwise(""));
                      }
                  };
  
                  return row;
              }
          });
      public boolean getSelected() {return selected.get();}
      public BooleanProperty selectedProperty(){return selected;}
  </code></pre>
  
  <p>I'm using this code but it doesn't yield the desired result.</p>