catch (UnsupportedLookAndFeelException e)
{
e.printStackTrace();
}
JToolBar tb = new JToolBar(JToolBar.HORIZONTAL);
ToolBarBorder b = new ToolBarBorder();
Insets insets = b.getBorderInsets(tb, new Insets(1, 2, 3, 4));
harness.check(insets, new Insets(2, 16, 2, 2));
tb.setOrientation(JToolBar.VERTICAL);
insets = b.getBorderInsets(tb, new Insets(1, 2, 3, 4));
harness.check(insets, new Insets(16, 2, 2, 2));
boolean pass = false;
try
{
b.getBorderInsets(null, null);
}
catch (NullPointerException e)
{
pass = true;
}