Dimension screenSize = PatchEdit.desktop.getSize();
Dimension screenSize = JSLDesktop.getSize();
    public void show() {	// override a method of JSLFrame	int high = 0;	for (int i = 0; i < widgetList.size(); i++) {	    SysexWidget w = (SysexWidget) widgetList.get(i);	    if ((w.getSliderNum() + w.getNumFaders() - 1) > high)		high = w.getSliderNum() + w.getNumFaders() - 1;	}	numFaderBanks = (high / 16) + 1;	faderHighlight();	ErrorMsg.reportStatus("PatchEditorFrame:Show   Num Fader Banks =  "			      + numFaderBanks);	Dimension screenSize = PatchEdit.desktop.getSize();        Dimension frameSize = this.getSize();        if (frameSize.height > screenSize.height) {            // Add necessary place for the vertical Scrollbar            frameSize.width += scroller.getVerticalScrollBar().getPreferredSize().width;            this.setSize(frameSize.width, screenSize.height);        }        if (frameSize.width > screenSize.width) {            // Add necessary place for the horizontal Scrollbar.            frameSize.height += scroller.getHorizontalScrollBar().getPreferredSize().height;            // If the entire frame doen't fit in the window, then            // rescale it to fit.            if (frameSize.height > screenSize.height)                frameSize.height = screenSize.height;            this.setSize(screenSize.width, frameSize.height);        }        super.show();    } // end of method