Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

locking text fields in java

 
shruty sharma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to lock text fields in java?
 
Sunil Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rupesh Bonthala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can call on the component to disable it.
 
Reinaldo de Carvalho
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but reminds that with " setEditable(false) " the component still receives focus. if you don't also want that, make " setFocusable(false)"
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
intermediate...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic