I need to format Strings to be of a certain width. Could anyone suggest any in-built methods for this?
I've seen some String.format() method stuff but it doesn't seem to exist in JDK 1.4; only JDK1.5 and above.
There's surely gotta be a better way than, say, tabbing !?
Thanks for the responses ..
I have created my own little padding function to solve the formatting issue.
Now I face another issue, which is that the text that I have padded appears perfectly in some settings and is all misaligned in certain other settings of the browser.
Any way I can make this small piece of code robust enough to handle all these browser settings problems?