To Define Mode for Non-Sigleton Windows/TopComponent

To Define Mode for Non-Sigleton Windows/TopComponent, add the desired mode in the Topcomponent's open() function.

@Override
    public void open() {
        Mode mode = WindowManager.getDefault().findMode("rightSlidingSide");
        if (mode != null) {
            mode.dockInto(this);
            super.open();
        }
    }

Comments

Popular posts from this blog

Printing of large double values in JAVA with or without scientific notation

To increase the size of heap memory for a Netbeans project

Adding/Updating Java projects from existing sources to Netbeans Project