Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to create word space in textarea  RSS feed

 
Joe Don
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys, your good effort has been great. Please, I am setting text to textarea from textfield. It works perfectly. My challenge, however, is setting texts with spaces in-Between them. For example, what I observe is:Amount23 instead of: Amount 23. Is it possible to automatically create word space while setting texts? I use netbeans. Please, assist.
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to automatically create word space while setting texts?


Why would you want to do that? You should just copy what the user enters into the text field and let the user format the text because I'm sure your code will not know where to add the appropriate space.

If you are attempting to append text to the text area from the text field then you can just do:

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