Is it possible to start JProgressBar from inbetween.I know this is wierd but I need to show the update between 20-80% and the progress bar should be invisible between 0-20% and 80-100% and the number 20 and 80 are run time variables.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The value displayed is dictated by the underlying data model (
BoundedRangeModel). You could subclass theDefaultBoundedRangeModel(or create on from scratch by implementingBoundedRangeModel) so that thegetExtent()always returns between 20-80%.The new model can be supplied to
JProgressBarvia its constructor orsetModelmethod.