Java JLabel getText and JTextField setText methods

Below code shows how to use JLabel getText method and JTextField setText method.

See also: How to create a simple JLabel with Text Simple java login JFrame window with Mysql Database connection.  

Read More


JTextField setEnabled Method

Below code shows how to enable or disable JTextField added in a JFrame window.JTextField inherits its methods from the class swing.Note the differences between the two fields

See also: How to create Read Only JTextField

Read More


How to create a JTextField and adding it to a JFrame

Below code creates a JTextField and adds it to a JFrame window.

See also: How to create Java JButton Swing Component

Read More