I have a JDialog that contains about 6 JTextFields which are all required fields. It also contains an OK button and a Cancel button. I want to disable to OK button until all required JTextFields have had data entered. Does someone know a way to do this?
posted 12 years ago
write a method :
create a DocumentListener. In all the methods do this :
Register your document listener with all 6 textfields.