Skip to main content

Trivial bug in JavaDoc for MaskFormatter

No replies
tprochazka
Offline
Joined: 2004-07-04

I reported 3 month ago bug in this javadoc:

http://download.java.net/jdk6/docs/api/javax/swing/text/MaskFormatter.html

There is example with doen't work. It uses don't exist method getDisplayValue().

Here is example:

MaskFormatter formatter = new MaskFormatter("###-####");
formatter.setPlaceholderCharacter('_');
formatter.getDisplayValue(tf, "123");

I think, that this can be fixed before final release JDK6, this is trivial operation.