Re: Processing dialog



kvram@xxxxxxxxxxx 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
.



Relevant Pages

  • Re: Processing dialog
    ... But this function is very heavy in calculating and it ... locks up the user interface. ... Sounds like you need Swings's JProgressBar. ...
    (comp.lang.java.gui)
  • Processing dialog
    ... But this function is very heavy in calculating and it ... locks up the user interface. ... to interact with the dialog to make it disappear from the ...
    (comp.lang.java.gui)
  • Re: Sat Nav Bargain (OT)
    ... Well, it looked very slow at calculating the route, and the TomTom has a much better user interface! ...
    (uk.radio.amateur)