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.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 23
Registered: ‎12-02-2012
My Device: BlackBerry 8300
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!

Contributor
Posts: 23
Registered: ‎12-02-2012
My Device: BlackBerry 8300
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);
}