Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JtextArea problem  RSS feed

 
Mohamad Obagi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

my problem is when i press enter in a jtextarea it go down to a new line

and i dont want this to happen... i am using enter in event handling of the jtextarea and its working however it create a new line after that.

so how shall i fix this.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
modify the textArea's keyBinding of 'enter' key, to do nothing.

sun's keybindings tutorial should have enough info if you need it.
 
Mohamad Obagi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh yes yes thats it

thanks man
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!