Hi all,
I'm trying to put a progress bar but I just can see the values of
progress counting, not the bar widget itself. I already tried with
several progress bars, from different libraries, for example,
gwtwidgets, gwtchismes, gwtext, and now I'm trying with gwtideias from
incubator and no bar shows up:
import com.google.gwt.widgetideas.client.ProgressBar;
public class Exp implements EntryPoint {
private ProgressBar pb2 = new ProgressBar(0.0, 100.0, 0.0);
private HorizontalPanel pbPanel = new
HorizontalPanel();
private Label pbLabel = new Label("Progress Bar: ");
...
public void onModuleLoad() {
...
pbPanel.add(pbLabel);
pbPanel.add(pb2);
form.setWidget(mainPanel);
...
mainPanel.add(pbPanel);
//pb.setText("gwt-file.jar");
pb2.addStyleName("progressbar-solid");
pb2.isVisible();
//pb.setProgress(50); // percent
Timer t = new Timer() {
public void run() {
//int progress = pb2.getProgress()+4;
double progress = pb2.getProgress()+4;
if (progress>100) cancel();
//pb2.setProgress(progress);
pb2.setProgress(progress);
}
};
t.scheduleRepeating(1000);
What Am I doing wrong?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.