File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea and Tab problem

 
Ranganath Junpal
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having a problem with JTextArea. when i say tab it just gives a Tab space instead of focusing the next component.
Secondly i want to know how to wrap text in JTextArea..

please let know..

Regards
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Whenever you type tab, It will focus some other component. That's the existing functionality. If you want space you should override the existing functionality of the component. add keyAdapter to your text area and capture tab key event and do whatever you want.

regarding wrapping of text, just have lookat java API

http://java.sun.com/j2se/1.4.2/docs/api/

setLineWrap(true) method helps you to wrap the text.


Cheers,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic