((JInternalFrame)allFrames[i]).setMaximum(false);
allFrames[i].setMaximum(false);
	public void cascadeFrames() {		int x = 0;		int y = 0;		JInternalFrame[] allFrames = getAllFrames();		// do nothing if no frames to work with		if (allFrames.length == 0) {			return;		}		manager.setNormalSize();		int frameHeight = (getBounds().height - 5) - allFrames.length * FRAME_OFFSET;		int frameWidth = (getBounds().width - 5) - allFrames.length * FRAME_OFFSET;		for (int i = allFrames.length - 1; i >= 0; i--) {			try {				((JInternalFrame)allFrames[i]).setMaximum(false);			}			catch (PropertyVetoException e) {				e.printStackTrace();			}			allFrames[i].setBounds(x, y, frameWidth, frameHeight);			x = x + FRAME_OFFSET;			y = y + FRAME_OFFSET;		}		checkDesktopSize();	}