Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view everything running on the event thread

We are experiencing a bug we cannot track down where something is freezing up our swing thread (it's been almost 2 weeks now and no real results) - we are experienced Swing programmers but we have a huge program and believe it to be in some of the legacy code

I am wondering, is there any way outside of editing the actual EventQueue class in the JDK which will allow us to view all pieces of our code currently running on the Event Dispatch Thread - maybe some type of tool which will allow us to view things as they enter or leave the event dispatch thread?

like image 283
sean.exposure Avatar asked Dec 21 '22 15:12

sean.exposure


1 Answers

One interesting approach is to extend EventQueue and push() it, as shown here.

like image 191
trashgod Avatar answered Jan 09 '23 19:01

trashgod