Dimension size = ( (JToolBar.Separator)s ).getSeparatorSize();
if ( size == null || size instanceof UIResource )
{
JToolBar.Separator sep = (JToolBar.Separator)s;
size = (Dimension)(UIManager.get("ToolBar.separatorSize"));
if (size != null) {
if (sep.getOrientation() == JSeparator.HORIZONTAL) {
size = new Dimension(size.height, size.width);
}
sep.setSeparatorSize(size);
}
}