update slider for work with java9
Merge pull request #17 from andy1138/java9

update slider for work with java9