Re: Processing dialog
- From: Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx>
- Date: Sun, 01 Jul 2007 15:55:38 +0200
kvram@xxxxxxxxxxx wrote:
i have a function connected to a button. works fine.Sounds like you need Swings's JProgressBar.
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.
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
.
- Follow-Ups:
- Re: Processing dialog
- From: kvram
- Re: Processing dialog
- References:
- Processing dialog
- From: kvram
- Processing dialog
- Prev by Date: Processing dialog
- Next by Date: Re: Processing dialog
- Previous by thread: Processing dialog
- Next by thread: Re: Processing dialog
- Index(es):
Relevant Pages
|