Java Code Examples for sun.swing.JLightweightFrame

The following examples show how to use sun.swing.JLightweightFrame. These examples are extracted from open source projects. 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
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 Project: openjdk-8-source   Source File: JViewport.java    License: 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 Project: openjdk-8   Source File: JViewport.java    License: 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
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 5
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 6
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 7
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 8
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 9
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 10
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 11
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 12
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 13
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 14
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 15
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 16
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 17
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 18
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 19
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 20
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 21
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 22
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 23
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 24
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 25
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 26
Source Project: hottub   Source File: WLightweightFramePeer.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 27
Source Project: hottub   Source File: XLightweightFramePeer.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 28
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 29
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
 
Example 30
@Override
public void updateCursorImmediately() {
    SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}