About 216,000 results
Open links in new tab
  1. java - Styling a TableView in CSS (JavaFX) - Stack Overflow

    Nov 26, 2015 · In case anyone came here searching for CSS of column-show-hide button, here is the CSS. .table-view .show-hide-columns-button { -fx-background-color: red; -fx-border-color: -fx-box-border; -fx-border-insets: -1 -1 0 0; }

  2. CSS and JavaFX - CSS in a TableView - Stack Overflow

    Aug 22, 2017 · .table-view .column-header-background .filler { -fx-background-color: linear-gradient(#101010 0%, #424141 100%); } For reference, you can use the JavaFX CSS Reference , or use the CSS Analyzer tool built into SceneBuilder.

  3. How to style Java FX TableView column header using CSS

    Apr 18, 2016 · I am rather new to JavaFX and CSS styling (and also stackoverflow). I am wondering how can one style the table header of the column. This is what my header looks like currently: Current styling of my table view column header. This is what I want it to look like: Styling I want to implement. I have tried applying the following css styling ...

  4. How to style a table cell in JavaFX2 using CSS (without removing …

    Jan 14, 2014 · Unlike table-row, which uses a nice lookup you can change, the value for the table-cell when no pseudo-classes are set is just hardcoded (transparent in caspian.css and null in modena.css). So instead of changing a lookup color, you have to override the setting directly, and that seems to override all the pseudoclass values too.

  5. Setting font color of JavaFX TableView Cells? - Stack Overflow

    Aug 16, 2011 · You need to override the CellFactory. Partial code just of the third column: TableColumn thirdColumn = new TableColumn("Third Column"); thirdColumn.setCellValueFactory(new PropertyValueFactory<TableData,String>("three")); // ** The TableCell class has the method setTextFill(Paint p) that you // ** need to override the text color // To obtain the TableCell we need to replace the Default ...

  6. java - Table design in JavaFx - Stack Overflow

    Aug 29, 2017 · How Can I design a table like above in javafx. I am using tableview and done some css but the design is not as good I want. Please can anyone tell me how can I achieve the above design. Here is the css I tried

  7. java - JavaFX TableView text alignment - Stack Overflow

    Even this is two years old, here is another answer. For every table column exists a default css style class .table-column, so if you want to change the whole table columns to justify center right it is only necessary to put this in a style sheet or inline style:.table-column { -fx-alignment: CENTER_RIGHT; }

  8. css - javafx - How to set selected row text color in not focused ...

    Apr 23, 2015 · For JavaFX 8, based on the Modena stylesheet, the selected row text color is based on the brightness of the background (white for dark backgrounds, black for light backgrounds). I've been able to override this by setting the text background color directly (which then gets used for the text color for selected rows):

  9. Change css row in tableView javafx - Stack Overflow

    Aug 3, 2016 · Note that there is not a 1:1 relation between table items and table rows. TableRows only exist for visible items and may be reassigned a value. You therefore need to take care properly removing the style class. Furthermore instead of using a style class to mark the rows, I recommend using a pseudoclass, which allows easier adding/removing.

  10. JavaFX CSS styling TableView Cell on edit - Stack Overflow

    Apr 9, 2015 · .text-field-table-cell .text-field { -fx-padding: 1; -fx-border-color:red; -fx-background-color:yellow; } .table-cell:focused { -fx-padding: 0; } This also prevents a change in the row height. Normal mode: Edit mode: If you are interested in the focus color, you should take a look at modena.css. There you'll find e. g.