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 11 years ago
write a method :
create a DocumentListener. In all the methods do this :
Register your document listener with all 6 textfields.
Job's a good 'un. D.
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF