ProgressBar broken?


I want to show the users quota by using the ProgressBar.

Pretty standard, taken from the book.

final ProgressBar bar = new ProgressBar(0.0f);

hl.addComponent(new Button(“Increase”,
new Button.ClickListener() {
@Override public void buttonClick(Button.ClickEvent event) {
float current = bar.getValue();
if (current < 1.0f) bar.setValue(current + 0.10f);
[/code]But it isn’t ivisilbe (setVisible(true) of course)


Strange, that exact example works just fine
. You could be experiencing some layout problem.

Odd, it looks like there’s no difference in the bar when the value is between 0.0 and 0.1.