Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1928
| From | "kvram" <kvram@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Processing dialog |
| Message-ID | <1183299758.310221.282370@q69g2000hsb.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <f68bot$a0h$01$1@news.t-online.com> |
| Date | 2011-04-27 15:36 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On 1 Juli, 15:55, Thomas Fritsch <i.dont.like.s...@invalid.com> wrote: > k...@passagen.se wrote: > > i have a function connected to a button. works fine. > > But this function is very heavy in calculating and it > > locks up the user interface. So i thought to run the > > function inside a thread. (that i have not done yet > > but i will do). However, i need a simple JDialog kind > > of thing which pops up in the middle of screen to tell > > the user "Processring.." and disapears as soon as the > > function is done. I wonder what is the best method of > > doing it in Swing? what is the best class to use and how > > to interact with the dialog to make it disappear from the > > screen upon function finish. > > Sounds like you need Swings's JProgressBar. > There is a chapter (with examples) in the Sun's Java tutorial: > "How to Use Progress Bars"http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html > > -- > Thomas Exatctly what i needed! Thanks a lot! kave --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Processing dialog "kvram" <kvram@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Processing dialog "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Processing dialog "kvram" <kvram@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Processing dialog "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
Re: Processing dialog "Nigel Wade" <nigel.wade@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
csiph-web