jlabel and printf

How can you print out data on a jlabel, in the same formatting as a printf? I have a line of code:
System.out.printf("%s %8s %7s %10s %5s %8s\n","Name","Price","Stock","Product #", "Value+%5", "Title");
That I would like to put into a jlabel. Any thoughts?

EDIT: It would also help to save printf to a variable instead of the screen...
Sign In or Register to comment.