jdk/src/share/classes/java/awt/TextField.java
changeset 25162 c388078278d4
parent 24865 09b1d992ca72
equal deleted inserted replaced
25161:c85a08c0b9d9 25162:c388078278d4
     1 /*
     1 /*
     2  * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   270     public void setEchoChar(char c) {
   270     public void setEchoChar(char c) {
   271         setEchoCharacter(c);
   271         setEchoCharacter(c);
   272     }
   272     }
   273 
   273 
   274     /**
   274     /**
       
   275      * Sets the character to be echoed when protected input is displayed.
       
   276      *
       
   277      *  @param  c the echo character for this text field
       
   278      *
   275      * @deprecated As of JDK version 1.1,
   279      * @deprecated As of JDK version 1.1,
   276      * replaced by <code>setEchoChar(char)</code>.
   280      * replaced by <code>setEchoChar(char)</code>.
   277      */
   281      */
   278     @Deprecated
   282     @Deprecated
   279     public synchronized void setEchoCharacter(char c) {
   283     public synchronized void setEchoCharacter(char c) {
   366     public Dimension getPreferredSize(int columns) {
   370     public Dimension getPreferredSize(int columns) {
   367         return preferredSize(columns);
   371         return preferredSize(columns);
   368     }
   372     }
   369 
   373 
   370     /**
   374     /**
       
   375      * Returns the preferred size for this text field
       
   376      * with the specified number of columns.
       
   377      *
       
   378      * @param  columns the number of columns
       
   379      * @return the preferred size for the text field
       
   380      *
   371      * @deprecated As of JDK version 1.1,
   381      * @deprecated As of JDK version 1.1,
   372      * replaced by <code>getPreferredSize(int)</code>.
   382      * replaced by <code>getPreferredSize(int)</code>.
   373      */
   383      */
   374     @Deprecated
   384     @Deprecated
   375     public Dimension preferredSize(int columns) {
   385     public Dimension preferredSize(int columns) {
   405     }
   415     }
   406 
   416 
   407     /**
   417     /**
   408      * Gets the minimum dimensions for a text field with
   418      * Gets the minimum dimensions for a text field with
   409      * the specified number of columns.
   419      * the specified number of columns.
   410      * @param    columns   the number of columns in
   420      * @param  columns the number of columns in
   411      *                          this text field.
   421      *         this text field.
       
   422      * @return the minimum size for this text field
   412      * @since    1.1
   423      * @since    1.1
   413      */
   424      */
   414     public Dimension getMinimumSize(int columns) {
   425     public Dimension getMinimumSize(int columns) {
   415         return minimumSize(columns);
   426         return minimumSize(columns);
   416     }
   427     }
   417 
   428 
   418     /**
   429     /**
       
   430      * Returns the minimum dimensions for a text field with
       
   431      * the specified number of columns.
       
   432      *
       
   433      * @param  columns the number of columns
       
   434      * @return the minimum size for this text field
   419      * @deprecated As of JDK version 1.1,
   435      * @deprecated As of JDK version 1.1,
   420      * replaced by <code>getMinimumSize(int)</code>.
   436      * replaced by <code>getMinimumSize(int)</code>.
   421      */
   437      */
   422     @Deprecated
   438     @Deprecated
   423     public Dimension minimumSize(int columns) {
   439     public Dimension minimumSize(int columns) {