// Check that the layout manager returns Integer.MAX_VALUE for both
// max dimensions, regardless of whether or not there's a border
harness.check (lm.maximumLayoutSize(borderPanel), max);
borderPanel.setBorder(new javax.swing.border.TitledBorder("HELLO WORLD"));
harness.check (lm.maximumLayoutSize(borderPanel), max);
// Check that maximumLayoutSize isn't affected by the layout size of
// the contained components
ftf.setMaximumSize(new Dimension (0,0));
harness.check (lm.maximumLayoutSize(borderPanel), max);