Explain the editable property of text field in java in detail
Answers
hello mates ⚘
A text field is a basic text control that enables the user to type a small amount of text. When the user indicates that textentry is complete (usually by pressing Enter), the text field fires an action event. If you need to obtain more than one line ofinput from the user, use a text area
Answer:
A text field is a fundamental control of text that allows the user to type asome portion of the text. When the text entry is completed as signaled by the user an action event is fired by the text field. A text area can be used if you wish to obtain lines of input from a specific user.
To make a non-editable Java text field, the following steps can be followed:
1. A class needs to be created that will extend the Java text field
2. A new Java text field is then created
3. SetEditable is used
4. Field is added to the frame by using Add.