java - Creating a bar with HTML in a JLabel -
java - Creating a bar with HTML in a JLabel -
i want create jlabel has text. behind text there should bar. width of bar should depend upon external parameters. possible to basic html back upwards of jlabels?
mockup
perhaps, not go way, utilize jprogressbar create bar, because supports string painted on it. see this question more details.
in short:
// when initializing: yourprogressbar.setstringpainted(true); // when want update it: yourprogressbar.setvalue(thecurrentvalueasint); yourprogressbar.setstring(thecurrentvalueasstring); // can string. java html swing jlabel
Comments
Post a Comment