Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
nordavinder
Posts: 17
Registered: ‎12-02-2012
My Carrier: Personal
Accepted Solution

How to disable text selection in EditField

Hello. 

How can I disable text selection in a EditField?

I don't want to let the user to copy the content of the text field.

 

Thanks in advance!

Please use plain text.
Contributor
nordavinder
Posts: 17
Registered: ‎12-02-2012
My Carrier: Personal

Re: How to disable text selection in EditField

I found that the method select() from the class Field must be overridden.

 

public void select(boolean enable) {
      super.select(false);
}

Please use plain text.