https://github.com/msh-trojan/java_21_text_field_test_1
Program depicting aspects of JText Fields as a GUI component that is mostly used when it comes to graphics in java.
https://github.com/msh-trojan/java_21_text_field_test_1
actionhandler actionlistener eventhandler graphics gui-components java jtextfield named-actionlistener
Last synced: 27 days ago
JSON representation
Program depicting aspects of JText Fields as a GUI component that is mostly used when it comes to graphics in java.
- Host: GitHub
- URL: https://github.com/msh-trojan/java_21_text_field_test_1
- Owner: MSH-trojan
- Created: 2024-08-24T19:08:38.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T19:06:44.000Z (8 months ago)
- Last Synced: 2024-08-26T22:13:53.308Z (8 months ago)
- Topics: actionhandler, actionlistener, eventhandler, graphics, gui-components, java, jtextfield, named-actionlistener
- Language: Java
- Homepage:
- Size: 4.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java_21_Text_Field_Test_1
Re: private JTextField textField1, textField2, textField3
Class TextFieldTest is a driver and not an ADT class (i.e.there are no objects of TextFieldTest type.
Therefore the use of private is not needed.
The use of private has no impact on the execution of this program.
important thing to note:
the code uses a **named action listener**. Specifically, the *TextFieldHandler* class is defined as a **private inner class** within the TextFieldTest class and implements the
ActionListener interface.This named class is then **instantiated and registered** as the action listener for the text fields and password field in the GUI.