wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "locking text fields in java" Watch "locking text fields in java" New topic
Author

locking text fields in java

shruty sharma
Greenhorn

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
http://goodtoknowit.blogspot.com/
Rupesh Bonthala
Greenhorn

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

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
author
Sheriff

Joined: Oct 14, 2002
Posts: 8801
    
    5
intermediate...


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
 
wood burning stoves
 
subject: locking text fields in java
 
Similar Threads
text to xml
Previous Text Fileld Value has to be Passed while curser is on currect text field.
Layout
reg html tables
Disable resize option