UsageException errorVar = new UsageException("You cannot specify both Width and VisibleColumns");
ErrorMgr.addError(errorVar);
throw errorVar;
}
setForm(form);
TextGraphic tg = GraphicFactory.newTextGraphic(text);
if (font != null)
tg.setFont(font);
tg.setSize(tg.getPreferredSize());
tg.setVisible(true);
java.awt.Point loc = location(startX, startY);
switch (horizAlign) {
case Constants.TA_LEFT:
tg.setHorizontalAlignment(JLabel.LEFT);
break;
case Constants.TA_RIGHT:
tg.setHorizontalAlignment(JLabel.RIGHT);
break;
case Constants.TA_CENTER:
tg.setHorizontalAlignment(JLabel.CENTER);
break;
default:
tg.setHorizontalAlignment(JLabel.LEFT);
}
WidgetX.set(tg, loc.x);
WidgetY.set(tg, loc.y);
if (width > -1)