Package java.awt.peer

Examples of java.awt.peer.TextFieldPeer


     * replaced by <code>getMinimumSize(int)</code>.
     */
    @Deprecated
    public Dimension minimumSize(int columns) {
        synchronized (getTreeLock()) {
            TextFieldPeer peer = (TextFieldPeer)this.peer;
            return (peer != null) ?
                       peer.minimumSize(columns) :
                       super.minimumSize();
        }
    }
View Full Code Here


   */
  public void setEchoCharacter(char echoChar)
  {
    this.echoChar = echoChar;

    TextFieldPeer peer = (TextFieldPeer) getPeer ();
    if (peer != null)
      peer.setEchoChar (echoChar);
  }
View Full Code Here

  public Dimension minimumSize(int columns)
  {
    if (isMinimumSizeSet())
      return new Dimension(minSize);
   
    TextFieldPeer peer = (TextFieldPeer) getPeer ();
    if (peer == null)
      return new Dimension(getWidth(), getHeight());

    return peer.getMinimumSize (columns);
  }
View Full Code Here

  public Dimension preferredSize(int columns)
  {
    if (isPreferredSizeSet())
      return new Dimension(prefSize);
   
    TextFieldPeer peer = (TextFieldPeer) getPeer ();
    if (peer == null)
      return new Dimension (getWidth(), getHeight());
   
    return peer.getPreferredSize (columns);
  }
View Full Code Here

TOP

Related Classes of java.awt.peer.TextFieldPeer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.