System.setProperty ("apple.awt.showGrowBox", "true");
JFrame frame = new JFrame ("Grow Box Demo");
JTextField field =
new JTextField ("Intruder Alert! Intruder Alert!");
frame.getContentPane().add (field, BorderLayout.CENTER);
frame.getContentPane().add (Box.createVerticalStrut(15),
BorderLayout.SOUTH);
frame.pack();
frame.setVisible(true);