Wednesday, 15 June 2011

java - How can I disable the textfield area of JSpinner -


I currently have a problem with Netbeen where my JSPPan is allowing you to type in the textfield while I only want the arrow I will be used. Is there a way to disable input of text or any other way through properties?

Thanks

Disable JSpinner's JTextField by using the following:

  ((JSpinner.DefaultEditor) yourPinner.getEditor ()). GetTextField () SetEditable (false);  

No comments:

Post a Comment