* text to show next to the progress bar
* @param horizontal
* true for horizontal bar, false for vertical.
*/
public UIProgressBar(final String labelText, final boolean horizontal) {
super(new BorderLayout());
setHorizontal(horizontal);
_textLabel = new UILabel("");
_textLabel.setBorder(new EmptyBorder());
_textLabel.setMargin(new Insets(0, 0, 0, 0));
_textLabel.setPadding(new Insets(0, 0, 0, 0));
_textLabel.setLayoutData(BorderLayoutData.WEST);
setLabelText(labelText);
add(_textLabel);
_mainPanel = new UIPanel(new BorderLayout());
_mainPanel.setLayoutData(BorderLayoutData.CENTER);
add(_mainPanel);
_bar = new UIPanel(new BorderLayout());
_bar.setLayoutData(BorderLayoutData.CENTER);
_mainPanel.add(_bar);
_barLabel = new UILabel("");
_barLabel.setLayoutData(BorderLayoutData.CENTER);