Just to let people know what I have discovered:
You cannot accomplish printf style formatting with the
the MessageFormat object. There is a class available
on the java.sun.com site called PrintfFormat that supports printf style formatting.
I am trying to display information on a users xterm in table form. To do this in c/c++ I would format the strings that I output to the screen with sprintf/printf.
How do I specify the field width in the format string for a MessageFormat object like sprintf?
Object[] fields =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.