getting information for JProgressBar and setting its value