207k views
4 votes
What component can be used for user input or display of output?

JButton
JLabel
JTextField
JFrame

User Tiandra
by
6.7k points

1 Answer

6 votes

Answer:

JTextField

Step-by-step explanation:

JTextField is a Swing control which can be used for user input or display of output. It corresponds to a textfield and can be included with other controls such as JLabel, JButton,JList etc. on a comprehensive user interface which is application dependent. JTextField supports a read-write mode where the user can enter a value and it also supports a read-only mode which can be used to display non-editable output to the user.

User Noha Elprince
by
6.4k points