Example usage for javax.swing DefaultDesktopManager subclass-usage

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

Introduction

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

Usage

From source file JavaXWin.java

class WindowManager extends DefaultDesktopManager {
    protected WindowWatcher ww;

    public WindowManager(JDesktopPane desktop) {
        ww = new WindowWatcher(desktop);
    }

From source file SampleDesktop.java

class SampleDesktopMgr extends DefaultDesktopManager {

    // This is called anytime a frame is moved. This
    // implementation keeps the frame from leaving the desktop.
    public void dragFrame(JComponent f, int x, int y) {
        if (f instanceof JInternalFrame) { // Deal only w/internal frames

From source file DesktopManagerDemo.java

class MyDesktopManager extends DefaultDesktopManager {
    protected int[] m_counts = new int[15];

    public void clearCounts() {
        for (int i = 0; i < 15; i++) {
            m_counts[i] = 0;

From source file KjellDirdalNotepad.java

/**
 * Private class used to replace the standard DesktopManager for JDesktopPane.
 * Used to provide scrollbar functionality.
 */
class MDIDesktopManager extends DefaultDesktopManager {
    private MDIDesktopPane desktop;