Make slider snaps to ticks
Refactor JTree