Package java.awt.peer

Examples of java.awt.peer.ContainerPeer.insets()


    @Deprecated
    public Insets insets() {
        ComponentPeer peer = this.peer;
  if (peer instanceof ContainerPeer) {
      ContainerPeer cpeer = (ContainerPeer)peer;
      return (Insets)cpeer.insets().clone();
  }
  return new Insets(0, 0, 0, 0);
    }

    /**
 
View Full Code Here


    @Deprecated
    public Insets insets() {
        ComponentPeer peer = this.peer;
        if (peer instanceof ContainerPeer) {
            ContainerPeer cpeer = (ContainerPeer)peer;
            return (Insets)cpeer.insets().clone();
        }
        return new Insets(0, 0, 0, 0);
    }

    /**
 
View Full Code Here

     * replaced by <code>getInsets()</code>.
     */
    public Insets insets() {
  if (this.peer != null && this.peer instanceof ContainerPeer) {
      ContainerPeer peer = (ContainerPeer)this.peer;
      return (Insets)peer.insets().clone();
  }
  return new Insets(0, 0, 0, 0);
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.