• Post Reply Bookmark Topic Watch Topic
  • New Topic

First line blank in JTextPane

 
Viswa Laksh
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in the process of designing a chat client interface. I used the following code to form user interface to enter his text. The entered text was formated as html and inserted into history area(another JTextPane) on top of this reply area.

In reply(JTextPane), the cursor stays only at second line instead of first line and leaves first line as blank. I am unable to edit/type in first line of reply(JTextPane) area. After I type and hit return, I make the



but it seems that the text sneaks towards to top and disappears.
Any Clues. Thanks in advance.
Regards
Viswa
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!