Stock-Based Compensation Plans (Details 2) - USD ($)
12 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Jun. 30, 2016
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward]      
Outstanding at beginning 1,191,236 1,790,224 1,557,616
Vested and exercisable at beginning 517,361 813,349 620,256
Granted 305,500 327,500 320,000
Excercised (76,418) (527,663) (82,737)
Forfeited (15,125) (383,625) (4,375)
Expired (75,000) (15,200) (280)
Outstanding at ending 1,330,193 1,191,236 1,790,224
Vested and exercisable at ending 681,316 517,361 813,349
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Roll Forward]      
Outstanding at beginning $ 7.66 $ 6.38 $ 5.80
Vested and exercisable at beginning 6.33 3.82 3.19
Granted 10.1 8.34 8.80
Excercised 5.47 3.30 4.60
Forfeited 7.89 8.23 9.23
Expired 4.87 8.51 5.82
Outstanding at ending 8.47 7.66 6.38
Vested and exercisable at ending $ 7.67 $ 6.33 $ 3.82
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Aggregate Intrinsic Value [Roll Forward]      
Outstanding at beginning $ 2,748,956 $ 1,675,072 $ 6,553,821
Vested and exercisable at beginning 1,923,794 1,501,208 6,553,821
Outstanding at ending 5,369,557 2,748,956 1,675,072
Vested and exercisable at ending $ 3,355,240 $ 1,923,794 $ 1,501,208