Forums Register Login

how to set these style constants in JTextPane?

+Pie Number of slices to send: Send
Hello Everybody,
I was trying to use JTextPane with the following StyleConstants:
1. LeftIndent
2. rightInent
3. FirstLineIndent
4. Alignemnt(center)
I was trying the following code but in vain. Can you please help me to achieve same?
regards,
Arun
Code:-
*********
+Pie Number of slices to send: Send
Hi,
Can somebody help me to achieve this. I hope I am not asking such a stupid question. Pl atleast reply for this post, evenif this is very basic question.
regards,
Arun
+Pie Number of slices to send: Send
I got some of the indentation working by calling setLogicalStyle( Style ) on the JTextPane... I'll look for more documentation on how to set StyleConstants and post them...

-Nate
+Pie Number of slices to send: Send
I am still waiting some help for this. I hope it is not so tedious or is it such a basic question?
I would be highly obliged if some one can provide me a code snippet or same.

regards,
Arun
+Pie Number of slices to send: Send
Actually, I have found that there is a documented bug with the StyleConstants class... several of the constants have not been implemented, and thus don't affect the text. There's an article about it in the JDC on Sun's site, the bug and suggested fix are in Sun's bug database.

-Nate
What does a metric clock look like? I bet it is nothing like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1476 times.
Similar Threads
Can you help me to remove this border?
JTextPane and Justified Paragraphs
Images
JTextPane +insert text,image with style
JTextPane default font
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:00:33.