Re: Problem with glasspane on JScrollPane



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.
.