This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 8900
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
intermediate...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic