Disable pagination animation for javafx 8

南楼画角 提交于 2019-12-31 03:56:12

问题


I am trying to convert the solution from stackoverflow thread: Disable pagination animation

it is too complicated to do it with JavaFX 8 because Utils is and other classes like SkinBase have changed with different arguments.

does anyone have a working example with pagination animation disabled for JavaFX8 ?


回答1:


Ok, I did it! using Gabriel Féron answer from : https://gist.github.com/gferon/4626632 I've translated it to JavaFX8: first create an -fx-skin on css of scene you want to disable pagination animation:

.pagination {
    -fx-border-color:  #0E5D79;
     -fx-skin: "com.sun.javafx.scene.control.skin.PaginationSkinErez";
}

then: use the following attached class instead of original PaginationSkin. I can't attach the class here has 5000+ lines. can someone help with it ?



来源:https://stackoverflow.com/questions/31052109/disable-pagination-animation-for-javafx-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!