Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser  RSS feed

 
Sashidhar Pitchika
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i make the textfield non-editable. After selecting the file the file name appears in the textfield provided by the JFileChoose , which i want it to be non-editable.
If any one have answer to this question please forward it to me.
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By coding your_text_field_name.setEditable(false), it will disable the textfield for editing. Information like this is available in API documentation.
Originally posted by Sashidhar Pitchika:
How can i make the textfield non-editable. After selecting the file the file name appears in the textfield provided by the JFileChoose , which i want it to be non-editable.
If any one have answer to this question please forward it to me.

------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
[This message has been edited by sreenivasa majji (edited November 03, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!