Re: [Java-gnome-developer] updating GNomeAppBar.progressbar while running a long process.
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-04-19 02:24:40
|
--- Manuel Ledesma <man...@co...> wrote: > There is an example already using timer and fireable from gnome library > and it seems to work fine. My problem is that I'm opening a dialog to > collect some user information and after user acceptance and doing some > processing. So timer and fireable does not work for me either and I was > expecting to use CustomEvents but unfortunately i got the same results. > Something that I believe make things more difficult is that whenever I > call Dialog.hide or hideAll and it does not seems to have any effect > because the Dialog does not disappear until function is completely done. > One thing that can help you to fix this problem is to hide the dialog > right away (require a redraw) and set focus back to the call window. I think you can still use a Timer on that. In fact, it seems when you use Swing's JProgressBar you actually use it with a Timer... so i think that's the common way of doing it, to put it this way. I just wrote a tutorial about how to do it, hope it helps (if not, let me know): http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/UsingProgressBars (yup, we still are going to fix the CustomEvents... but anyway i think you should use a progressbar with a Timer, like that tutorial) Cheers, J.V. __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ |