@Override
	public void maximizeFrame(JInternalFrame f) {
		//System.out.println("maximizeFrame: " + f.getTitle());
		setMaximized(true);
		super.maximizeFrame(f);
		
		// Move it to the front since under certain conditions it may not already be there.
		f.moveToFront();
		
		// Disable Stack Menu Item
		JMenuItem item = (JMenuItem) GUITreeLoader.reg.get(GUITreeComponentRegistry.STACK_MENU_ITEM);
		item.setEnabled(false);
		
		// Remove the border
		((OutlinerDocument) f).hideBorder();
		
		// Make sure JInternalFrame is sized to the viewport, not the desktop.
		Dimension d = new Dimension(Outliner.jsp.getViewport().getWidth(), Outliner.jsp.getViewport().getHeight());
		f.setSize(d);
		updateDesktopSize(false);
	}