Integer location = (Integer) evt.getNewValue();        int contentPaneHeight = this.getContentPane().getHeight(); int hopefullyMaxDivider = contentPaneHeight - (consoleSplitter.getDividerSize() + DIVIDER_FUDGE);   viewConsoleItem.setSelected(location.intValue() < hopefullyMaxDivider);
boolean isMaximized = isSplitterMaximized(consoleSplitter, evt); viewConsoleItem.setSelected(!isMaximized);
    private void consoleSplitterPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_consoleSplitterPropertyChange	// The idea here is to keep the View:Console checkbox up to date with	// the real location of the divider of the consoleSplitter.	// What we want is if any part of the console window is visible,	// then the checkbox should be checked.	String propertyName = evt.getPropertyName();	if (propertyName.equals(JSplitPane.DIVIDER_LOCATION_PROPERTY)) {	    Integer location = (Integer) evt.getNewValue();	    /*	    if (location.intValue() > consoleSplitter.getMaximumDividerLocation())		throw new IllegalStateException("JSplitPane is stupid");	    viewConsoleItem.setSelected(location.intValue() != consoleSplitter.getMaximumDividerLocation());	     */	    // FIXME - I need to find out the REAL maximum divider value.	    // getMaximumDividerLocation() is based on minimum component sizes,	    // but it may be violated if the user clicks the little "contracter"	    // button put in place when the "one touch expandable" property was set.	    // Here is a nasty hack which makes a guess based on the current size	    // of the frame's content pane.	    int contentPaneHeight = this.getContentPane().getHeight();	    int hopefullyMaxDivider = contentPaneHeight - (consoleSplitter.getDividerSize() + DIVIDER_FUDGE);/*	    System.out.println("pane height = " + contentPaneHeight + ", dividerLoc=" + location.intValue() +		", hopefullyMaxDivider=" + hopefullyMaxDivider); */	    	    viewConsoleItem.setSelected(location.intValue() < hopefullyMaxDivider);	}    }//GEN-LAST:event_consoleSplitterPropertyChange