fixed ProgressBar.java deprecation issue