I needed a way to have words with different sized fonts in my JTextArea, but apparently only plane text is supported for it. I turned to JEditorPanes which apparently support html which allows different sized fonts, which is great.

Now, I need a way to traverse back into the lines of my JEditorPane and pick out certain lines which the user edits so I can process the content into my application. How do I process these lines? From what I can tell, there is no easy way to pick out certain lines from my JEditorPane, but I'm wondering if its possible.

Thanks!

I just used getText on it and .split("\n");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.