< prev index next >

src/java.desktop/share/classes/javax/swing/text/MaskFormatter.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 35,49 **** * of a <code>MaskFormatter</code> is controlled by way of a String mask * that specifies the valid characters that can be contained at a particular * location in the <code>Document</code> model. The following characters can * be specified: * ! * <table border=1 summary="Valid characters and their descriptions"> * <tr> * <th>Character&nbsp;</th> ! * <th><p style="text-align:left">Description</p></th> * </tr> * <tr> * <td>#</td> * <td>Any valid number, uses <code>Character.isDigit</code>.</td> * </tr> * <tr> --- 35,53 ---- * of a <code>MaskFormatter</code> is controlled by way of a String mask * that specifies the valid characters that can be contained at a particular * location in the <code>Document</code> model. The following characters can * be specified: * ! * <table class="striped"> ! * <caption>Valid characters and their descriptions</caption> ! * <thead> * <tr> * <th>Character&nbsp;</th> ! * <th>Description</th> * </tr> + * </thead> + * <tbody> * <tr> * <td>#</td> * <td>Any valid number, uses <code>Character.isDigit</code>.</td> * </tr> * <tr>
*** 64,73 **** --- 68,78 ---- * <tr><td>?</td><td>Any character * (<code>Character.isLetter</code>).</td> * </tr> * <tr><td>*</td><td>Anything.</td></tr> * <tr><td>H</td><td>Any hex character (0-9, a-f or A-F).</td></tr> + * </tbody> * </table> * * <p> * Typically characters correspond to one char, but in certain languages this * is not the case. The mask is on a per character basis, and will thus
< prev index next >