} else if (axis.equals(AXIS_VERTICAL)) {
minimumSize = new Dimension(0 ,0);
preferredSize = new Dimension(0, 0);
maximumSize = new Dimension(0, Short.MAX_VALUE);
} else {
throw new GUIException("Unknown spacer axis [" + axis + "]");
}
} else if (type.equals(TYPE_STRUT)) {
if (axis.equals(AXIS_HORIZONTAL)) {
minimumSize = new Dimension(size ,0);
preferredSize = new Dimension(size, 0);
maximumSize = new Dimension(size, Short.MAX_VALUE);
} else if (axis.equals(AXIS_VERTICAL)) {
minimumSize = new Dimension(0, size);
preferredSize = new Dimension(0, size);
maximumSize = new Dimension(Short.MAX_VALUE, size);
} else {
throw new GUIException("Unknown spacer axis [" + axis + "]");
}
} else {
throw new GUIException("Unknown spacer type [" + type + "]");
}
if (isConstructed)
spacer.invalidate();
isConstructed = true;
}