i am making a
java application and i used the code from following links
http://www.javalobby.org/java/forums/t20551.html
http://www.javalobby.org/java/forums/t20552.html
i have used the AbstractValidator class as it is and used the NotEmptyValidator class.when i call the following code from my application
JTextField textField = new JTextField();
textField.setInputVerifier(new NotEmptyValidator(parent, textField, "Field cannot be null."));
the following error occurs
parent is not public in java.awt.Component; cannot be accessed from outside package
textField.setInputVerifier(new NotEmptyValidator(parent, textField, "Field cannot be null."));
can anybody remove this error