• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on StyledDocument.

thejaswini ramesh
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
My application consists of a simple GUI with a textField, a button and a textpane.The requirement is tht user types a command and hits the button upon which the command and response from a remote element should be logged in the textPane.Also after each cmd + response, the screen should be cleared and new set of cmd + resp should be logged when new cmd is entered.
I have used the following:

But now the cmd + resp are logged one after another as opposed to the textPane being cleared after each set.I even tried using remove() mthd from document to remove a portion of the document.Can someone tell me a simpler mthd to do this...?Also can i use a textArea instead of textPane without the StyledDocument??Will this help??
Thanks in Advance,
[ February 12, 2006: Message edited by: thejaswini ramesh ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic