Example usage for javax.swing JDesktopPane subclass-usage

List of usage examples for javax.swing JDesktopPane subclass-usage

Introduction

In this page you can find the example usage for javax.swing JDesktopPane subclass-usage.

Usage

From source file ScrollDesktop.java

class ScrollDesktop extends JDesktopPane implements Scrollable {
    public Dimension getPreferredScrollableViewportSize() {
        return getPreferredSize();
    }

    public int getScrollableUnitIncrement(Rectangle r, int axis, int dir) {

From source file Main.java

class PictureDesktop extends JDesktopPane {
    public void addPicture(final Image image) {
        add(createFrame(image));
    }

    private static int frames;

From source file KjellDirdalNotepad.java

/**
 * An extension of WDesktopPane that supports often used MDI functionality. This
 * class also handles setting scroll bars for when windows move too far to the
 * left or bottom, providing the MDIDesktopPane is in a ScrollPane.
 */
class MDIDesktopPane extends JDesktopPane {