frame.getContentPane().add(createPropertyGUI(propertyConsumer)); frame.pack();  if (frame.getHeight() > 500) { frame.setSize(frame.getWidth(), 500); }  frame.setVisible(true);
JComponent comp = createPropertyGUI(propertyConsumer); windowSupport = new WindowSupport(comp, "Inspector - " + prefix); windowSupport.setMaxSize(-1, 500); windowSupport.displayInWindow();
    public void inspectPropertyConsumer(PropertyConsumer propertyConsumer) {	String prefix = propertyConsumer.getPropertyPrefix();	// construct GUI	if (frame == null) {	    frame = new JFrame("Inspector - " + prefix);	} else {	    frame.setVisible(false);	    frame.dispose();	    frame = null;	    frame = new JFrame("Inspector - " + prefix);	}	frame.getContentPane().add(createPropertyGUI(propertyConsumer));	frame.pack();	if (frame.getHeight() > 500) {	    frame.setSize(frame.getWidth(), 500);	}	frame.setVisible(true);    }