JTextArea with Different Fonts
Is there a way to have JTextArea with multiple fonts at different lines?
Is there a way to have JTextArea with multiple fonts at different lines?
Check out this posting:
http://forum.java.sun.com/thread.jspa?threadID=5194753
How does that apply to JTextArea?
It doesn't. You just never replied to that posting so I figured you never bothered to read it. So I wasn't about to post a response here assuming you don't read and respond to your postings.
No, I read all the responses, and I either find a different way of doing things or take the advice of people say. Sorry if me not responding makes you think that I don't read it, but I do.
So you respond to every posting you make saying that the problem is solved (and you list the solution). People don't want to waste time reading and answering postings that already have a solution.
If the suggestion wasn't helpfull, then you say you are still looking for help.
Every posting should have a followup response by you.
Ok, got it.
So is there a way to do this?
Not with a JTextArea, but if you read the JTextArea API you will find a link to the Swing tutorial on "Using Text Components" that will show a component that you can use.
Ok, thnx
You don't have to reply to all threads you create and thank those that help you out of the goodness of their hearts. It's not required. But if you don't want to be thought of as an inconsiderate lout not taught basic manners by his mom, and not worthy of getting any help anymore, I'd recommend that you do this.
I don't consider it inconsiderate though. I help people(in life and in the forums from time to time) and don't get a thnx at all, and honeslty I don't expect me. Or that could just be the New York lifestyle coming out.
> I don't consider it inconsiderate though. I help
> people(in life and in the forums from time to time)
> and don't get a thnx at all, and honeslty I don't
> expect me. Or that could just be the New York
> lifestyle coming out.
Again, it's your choice. You want to piss off anyone who helps you, be my guest. It's a free country. But actions have consequences.
So there is JTextField, JTextArea and JEditorPane. TextArea is definitely not what I want, JEditorPane is mostly for webpages, JTextField doesn't differeante between the lines. Is there anythig else I can use yo have the text represented differently at each line?
> So there is JTextField, JTextArea and JEditorPane.
And....
I give up! The tutorial has pictures of 6 different text compnents.
Hey, I got it with JTextPane.
Thnx.
But I do have one more question. Is there a TextArea with a linewrap that preserves the \n when the text is outputted into a document?
> . Is there a TextArea with a linewrap that preserves the \n when the text is outputted into a document?
I thought you said you read your old postings:
http://forum.java.sun.com/thread.jspa?threadID=5195370
There is no "\n" added to the Document of the text area.
In my old posting I was asking for JTextArea, in this one I was asking for any text area. But I guess not. Thnx again.