help setting a Progress Bar or a Progress Monitor

Hi.

I have an app that calls webmethods and i would like to show the user some progress bar or progress monitor so he keeps distracted a bit instead while waiting.

I don't know the real time that takes the webmethod to respond, it might be 1 sec or 5.

The webmethod is trigered by a JTabbedPane stateChanged event.

I have allready the code necessary to call the webmethod and deal with the response, just want help with the progress bar or monitor.

Any sugestion of what to use ?

Thank you.

[534 byte] By [noe.rochaa] at [2007-11-27 2:27:39]
# 1
> just want help with the progress bar or monitor.Sounds like you want an [url http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html#indeterminate]Indeterminate Progress Bar[/url].
camickra at 2007-7-12 2:38:37 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi.

I have solved the probelm, but there's somrthing left.

I have a JProgressBar pluged in a JDialog form.

If i do ... new JDialog(this, true)

the progress bar runs until i exit the dialog.

if i do ... new JDialog(this, false)

, it works the way i want, but the JDialog is not painted, ie, the main app does his job (sends a call to a webservice and gets his response), but i can't see the progress bar.

What do i have to do here ?

Message was edited by:

noe.rocha

noe.rochaa at 2007-7-12 2:38:37 > top of Java-index,Desktop,Core GUI APIs...