css - JavaFx jar file tableView style properties not working when creating jar? -
i using netbeans create jar fx application , application running fine in standalone jar . style properties of tableview column header , fonts not working .
i have made table view transparent there in jar comes in grey colour font changes.
here css file in application
.button { -fx-font-size: 13.0px; -fx-font-weight:bold; -fx-base: #00a7d4; -fx-background: #e5f3f6; -fx-focus-color: #0093ff; -fx-control-inner-background: #ffffff; -fx-text-base-color: #ffffff; -fx-background-color: transparent; -fx-inner-border: linear-gradient(to bottom, derive(-fx-color,73.6%) 0%, derive(-fx-color,29.200000000000003%) 100%); -fx-body-color: linear-gradient( bottom, derive(-fx-color, 34.0%) 0%, derive(-fx-color, -18.0%) 100%); -fx-background-insets: 0px; -fx-border-radius: 10; -fx-background-radius: 10; -fx-border-color:black; -fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */ /*-fx-text-fill: -fx-text-base-color;*/ -fx-alignment: center; -fx-content-display: left; } .button:focused { -fx-color:#00a7d4; -fx-background-color:transparent; -fx-background-insets: -1.4, 0, 1, 2; -fx-border-radius: 10; -fx-background-radius: 10;; } .button:hover { -fx-focus-color: #ff0000; -fx-background-color: #b3ffb3; -fx-border-radius: 10; -fx-background-radius: 10; } .root { -fx-background-image: url("/images/back.jpg"); -fx-background-radius: 10 ; } #aoltable .table-cell{ -fx-alignment: center; -fx-font-weight:bold; } #back { -fx-graphic: url("/images/backward.png"); -fx-graphic-text-gap : 10; } .tab-pane *.tab-header-background { -fx-background-color: transparent; } #content{ -fx-background-image: url("/images/back.jpg"); } .table-view { -fx-background-color: transparent; -fx-background-insets: 0; -fx-padding: 10; -fx-alignment: center; } .table-view .column-header-background { -fx-background-color: transparent; -fx-border-color: transparent transparent rgba(255,255,255,0.3) transparent; -fx-border-width: 1; -fx-background-insets: 0; -fx-padding: 0 10 0 0; } .table-view .column-header, .table-view .filler { -fx-border-color: transparent; } .table-view .column-header .label { -fx-text-fill: firebrick; -fx-font-weight: bold; } .table-view .table-cell { -fx-background-color: transparent; -fx-border-color: transparent; -fx-text-fill: black; -fx-alignment: center; } .table-view .table-row-cell:filled:selected:focused, .table-view .table-row-cell:filled:selected { -fx-background-color: rgba(0,0,0,0.3); } .table-view .table-row-cell { -fx-background-color: transparent; /* -fx-border-color:black;*/ }
please cannot figure out wrong . other components working why tableview column header of javafx not working.
i tried adding table view css file in tuw fxml instead of adding java code problem persists, not error css suffers bit. made demo app see if app bug or 1 has same appearance of table view please help
Comments
Post a Comment