سؤال

Is there any way to remove sort indicator/arrow from sorted tablecolumn in javafx 2.2 table columns ?

هل كانت مفيدة؟

المحلول

this can be done via css with

.table-view .arrow {
    -fx-background-insets: 0;
    -fx-padding: 0;
    -fx-shape: " ";
}

نصائح أخرى

This worked for me:

.no-sort-icon .column-header,
.no-sort-icon .column-header .arrow {
    -fx-background-image: null;
}

Then you add "no-sort-icon" to the tableView's style classes.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top