Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8101940

Add cell style or cell alignment into TableColumn.

XMLWordPrintable

      It would be great if there was an option for TableView to set style/id/styleclass for the alll the cells of the particular column. It is much easier and preferable to set column style via css rather than creating custom cell fabrics just for styling needs.

      It seems to be reasonable to set these settings via TableColumn object to have the following usage:

      TableColumn amountColumn = new TableColumn("Amount");
      amountColumn.setStyle("-fx-alignment: right;");

      or

      amountColumn.setStyleclass("amount-column");

      .amount-column {
          -fx-alignment: right;
      }

      or

      amountColumn.setId("amount-column");

      #amount-column {
          -fx-alignment: right;
      }

            jgiles Jonathan Giles
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: