i want to add isEnabled() method to JTextField, i write a code
tRate=new JTextField();
if (tRate.isEnabled()){
JOptionPane.showMessageDialog(c,"press any key to get rate");
}
but it is giving message just after compilation of program instead when tRate is enabled