A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Alignment problem in JTextPane
Nagurva Reddy
Greenhorn
Joined: Jul 10, 2001
Posts: 7
posted
Aug 16, 2001 00:18:00
0
Hai all...
StyleContext.NamedStyle styleMap = styleContext.new NamedStyle();
StyleConstants.setAlignment(styleMap,StyleConstants.ALIGN_JUSTIFIED);
textPane.setParagraphAttributes(styleMap, true);
Here i am setting Justification for my text pane,but it is not working ,it is working like ALIGN_CENTER.
Thanks
Nagu
------------------
Nagurva
Nagurva
I agree. Here's the link:
http://zeroturnaround.com/jrebel
subject: Alignment problem in JTextPane
Similar Threads
Tiger mock questions!
Help me out in Thread
Encoding and Decoding
Copying a sheet from an excel file to another excel file using Apache POI
format double
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter