File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes justify????..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic


Basanth P Rangadhol

Joined: Nov 22, 2004
Posts: 13
i am unable to justify the entire paragraph, as in MS Word editor... please help....

Imagination is more important than knowledge - Einstien.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Hmm. I wonder how you are trying to do this. Are you using AWT/Swing? SWT? A bit more detail and maybe we can help.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Basanth P Rangadhol

Joined: Nov 22, 2004
Posts: 13
yeh.. i am working on swing, and i used StyledEditorKit in JTextPane. also, i used Align_justify configuration in StyleConstants, but it did not worked. instead it Aligned center... please help..
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
You will probably get a better response if you mosey on over to the GUI forum. When you post your question there, you should include some more specific information. In particular, it will probably help if you post your exact code rather than trying to paraphrase what it does.

Good Luck


Java API Documentation
The Java Tutorial
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'm closing this thread as this conversation has been moved to the Swing / AWT / SWT / JFace forum.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: justify????.....
It's not a secret anymore!