Java Code Examples for sun.awt.SunToolkit#getNativeContainer()

The following examples show how to use sun.awt.SunToolkit#getNativeContainer() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WComponentPeer.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 2
Source File: WComponentPeer.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 3
Source File: WComponentPeer.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 4
Source File: WComponentPeer.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 5
Source File: WComponentPeer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 6
Source File: WComponentPeer.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 7
Source File: WComponentPeer.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 8
Source File: WComponentPeer.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 9
Source File: WComponentPeer.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 10
Source File: WComponentPeer.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 11
Source File: WComponentPeer.java    From jdk8u_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 12
Source File: WComponentPeer.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}
 
Example 13
Source File: WComponentPeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the native parent of this peer. We use the term "parent" explicitly,
 * because we override the method in top-level window peer implementations.
 *
 * @return the parent container/owner of this peer.
 */
WComponentPeer getNativeParent() {
    Container parent = SunToolkit.getNativeContainer((Component) target);
    return (WComponentPeer) WToolkit.targetToPeer(parent);
}