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

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -