Gettig rid of the /r/n from the texfield.

L

lrantisi

I have a textfield object.
When I enter a text on it, I empty it and put that text in another
textfield object.
But when I let this happen after pressing the (Enter ) button of my
keyboard over the first textfield, I see that, after I empty the first
textfield with :

firsttext.setText("");


that it still have the (Enter) in it. So when I enter this text field
again I find that my caret is positioned in the second line, because
the textfield still has the (Enter) in it.
How can I solve this problem..???? I want to get rid of the (Hidden)
enter

Thanks
 
A

Andrew Thompson

lrantisi said:
I have a textfield object. ...
(SNIP)

Good for you - would you like some code with that?
Or, to put that another way. I believe that a short
complete code example* would explain this problem
better than the descriptions I trimmed (which read like
gobble-de-gook, to me).

* <http://www.physci.org/codes/sscce/>
( Note. This example can probably be expressed
in less than 40 lines of code. )

Andrew T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,270
Messages
2,571,102
Members
48,773
Latest member
Kaybee

Latest Threads

Top