Re: Problem with glasspane on JScrollPane
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 06:20:29 GMT
On 29 Sep 2005 21:52:20 -0700, "Anthony Mak" <anthony.mak@xxxxxxxxx>
wrote or quoted :
>> Are you tying up the Swing thread?
>
>What do you mean tying the thread?
see http://mindprod.com/jgloss/thread.html
http://mindprod.com/jgloss/threadsafe.html
http://mindprod.com/jgloss/swing.html
Basically there two errors can make that will tie up the Swing thread
so it can't attend to painting, events, keystrokes etc.
1. sleep
2. do some lengthy task in an event handler. Instead spin it off as
its own Thread, being careful to poke any Swing components via
invokeLater on your new thread. see SwingWorker in the Thread entry to
do that neatly.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- References:
- Problem with glasspane on JScrollPane
- From: Anthony Mak
- Re: Problem with glasspane on JScrollPane
- From: Roedy Green
- Re: Problem with glasspane on JScrollPane
- From: Anthony Mak
- Problem with glasspane on JScrollPane
- Prev by Date: Re: Mouse Cursor with hourglass and pointer
- Next by Date: Re: Painting a Stack with Swing
- Previous by thread: Re: Problem with glasspane on JScrollPane
- Next by thread: Painting a Stack with Swing
- Index(es):