sun.swing.JLightweightFrame Java Examples

The following examples show how to use sun.swing.JLightweightFrame. 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: JLightweightFrameRoundTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) throws Exception {
    SwingUtilities.invokeAndWait(() -> {
        JLightweightFrame jLightweightFrame = new JLightweightFrame();
        jLightweightFrame.setContent(new XLightweightContent());
        jLightweightFrame.setSize(600, 600);
        jLightweightFrame.notifyDisplayChanged(1.0001, 1.0001);
    });
}
 
Example #2
Source File: JViewport.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void addNotify() {
    super.addNotify();
    // JLightweightFrame does not support BLIT_SCROLL_MODE, so it should be replaced
    Window rootWindow = SwingUtilities.getWindowAncestor(this);
    if (rootWindow instanceof JLightweightFrame
            && getScrollMode() == BLIT_SCROLL_MODE) {
        setScrollMode(BACKINGSTORE_SCROLL_MODE);
    }
}
 
Example #3
Source File: JViewport.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void addNotify() {
    super.addNotify();
    // JLightweightFrame does not support BLIT_SCROLL_MODE, so it should be replaced
    Window rootWindow = SwingUtilities.getWindowAncestor(this);
    if (rootWindow instanceof JLightweightFrame
            && getScrollMode() == BLIT_SCROLL_MODE) {
        setScrollMode(BACKINGSTORE_SCROLL_MODE);
    }
}
 
Example #4
Source File: WLightweightFramePeer.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #5
Source File: LWLightweightFramePeer.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #6
Source File: WLightweightFramePeer.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #7
Source File: XLightweightFramePeer.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #8
Source File: LWLightweightFramePeer.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #9
Source File: WLightweightFramePeer.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #10
Source File: XLightweightFramePeer.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #11
Source File: LWLightweightFramePeer.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #12
Source File: XLightweightFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #13
Source File: XLightweightFramePeer.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #14
Source File: LWLightweightFramePeer.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #15
Source File: WLightweightFramePeer.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #16
Source File: XLightweightFramePeer.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #17
Source File: LWLightweightFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #18
Source File: WLightweightFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #19
Source File: XLightweightFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #20
Source File: LWLightweightFramePeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #21
Source File: WLightweightFramePeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #22
Source File: XLightweightFramePeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #23
Source File: WLightweightFramePeer.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #24
Source File: WLightweightFramePeer.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #25
Source File: XLightweightFramePeer.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #26
Source File: LWLightweightFramePeer.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #27
Source File: WLightweightFramePeer.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #28
Source File: XLightweightFramePeer.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #29
Source File: LWLightweightFramePeer.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example #30
Source File: WLightweightFramePeer.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}