Hi friends, I want to display some text with 'justify' alignment (the alignment obtained using align='justify' in html ). Can anybody tell me how can I do this and the component that I should use..?. If possible, please provide code samples.
Thanks Shahabas E Shabeer
The greatest pleasure in life is doing what peoples say you can not do.
Thanks for your reply.. I am sorry, my question was not clear. Actually I want to display a BLOCK of text (say a paragraph) with 'justify' alignment. I tried HTML formatting. But unfortunately it is not working. When used with JLabel,JTextPane and JEditorPane, the result of align='center' and align='justify' are the same. I want the paragraph to be displayed with equal margins on both the left and right side of page.Is this possible.?