Hello,
I was wondering if someone knows the answer to this problem that is driving me crazy. I have defined a JTextPane to be a specific size. The JTextPane itself has no scrollbars so that's not the problem. When I reach the end of a line
word wrapping occurs. That's okay. But when I reach the very last line of my JTextPane, I can still keep typing text. Why does this happen? I defined the JTextPane a specific size with .setSize(), and I don't want users to type in more text than the size of the JTextPane itself. You may think that the extra text is no problem since no one can see it but I save this text, and the extra text is getting saved. Any ideas? And why is this occuring in the first place that I can type in more text than the JTextPane size I define.
Joe Crew