Java 8 DesktopManager - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 DesktopManager class.

This code example shows how to use the following methods:activateFrame, deiconifyFrame
    @Override 
    public void activateFrame(JInternalFrame f) {
        if (f == null || isClosingFrame) {
            return; 
        } 
        delegate.activateFrame(f);
        if (!mostRecentlyUsedFrames.isEmpty() && f.equals(mostRecentlyUsedFrames.getFirst())) {
            selectTopFrame(null); 
            return; 
        } else if (!mostRecentlyUsedFrames.isEmpty() && mostRecentlyUsedFrames.contains(f)) {
            mostRecentlyUsedFrames.remove(f);
        } 
        JInternalFrame previousTop = mostRecentlyUsedFrames.isEmpty() ? null : mostRecentlyUsedFrames.getFirst();
        mostRecentlyUsedFrames.addFirst(f);
        selectTopFrame(previousTop);
    } 
 
    @Override 
    public void beginDraggingFrame(JComponent f) {
        delegate.beginDraggingFrame(f);

5
CodeRank
See Code Examples for Java 8 DesktopManager Methods: