It's not a secret anymore!
The moose likes Java in General and the fly likes locking text fields in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "locking text fields in java" Watch "locking text fields in java" New topic

locking text fields in java

shruty sharma

Joined: Dec 25, 2008
Posts: 4
how to lock text fields in java?
Sunil Kumar
Ranch Hand

Joined: Apr 24, 2007
Posts: 76
Lock text fields in java?? Please elaborate, the context?
Java - Make it static final (Constant).
database - you need to create mechanism on your own, for whatever criteria you want
JSP - disable the text field

Sunil Kumar
Rupesh Bonthala

Joined: Mar 08, 2007
Posts: 5
you can call on the component to disable it.
Reinaldo de Carvalho

Joined: Dec 06, 2008
Posts: 11
but reminds that with " setEditable(false) " the component still receives focus. if you don't also want that, make " setFocusable(false)"

Reinaldo de Carvalho
Bahia - Brazil
Bert Bates

Joined: Oct 14, 2002
Posts: 8898

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
I agree. Here's the link:
subject: locking text fields in java
It's not a secret anymore!