S
Simon
Hi,
I have a rather largish application that uses lots of libraries and
comes in a command line version, a GUI version, and parts of it are used
in an enterprise application. Something in it seems to be starting the
EventDispatchThread, also in the non GUI versions.
Some components are craeating GUI elements or instances from the
java.awt package (Icons, Images, etc) which might relate to that. E.g.,
on Windows, creating a JPanel but displaying nothing starts two Threads
named "AWT-Windows" and "AWT-Shutdown" (not "AWT-EventQueue-0"!).
- Where can I find documentation on which events cause the
EventDispatchThread to be started?
- Is there a tool or maybe a debugging technique to hook into the method
that starts the event queue so I can inspect stack frames to spot the
method call which eventually results in starting the thread.
- Creating and displaying GUI elements is forbidden in enterprise
applications. Is it allowed to create a JPanel and use its paint()
method to draw on a BufferedImage which I then send to a Web client as a
PNG. Or is it already forbidden to do anything that starts an "AWT-*"
thread?
Cheers,
Simon
I have a rather largish application that uses lots of libraries and
comes in a command line version, a GUI version, and parts of it are used
in an enterprise application. Something in it seems to be starting the
EventDispatchThread, also in the non GUI versions.
Some components are craeating GUI elements or instances from the
java.awt package (Icons, Images, etc) which might relate to that. E.g.,
on Windows, creating a JPanel but displaying nothing starts two Threads
named "AWT-Windows" and "AWT-Shutdown" (not "AWT-EventQueue-0"!).
- Where can I find documentation on which events cause the
EventDispatchThread to be started?
- Is there a tool or maybe a debugging technique to hook into the method
that starts the event queue so I can inspect stack frames to spot the
method call which eventually results in starting the thread.
- Creating and displaying GUI elements is forbidden in enterprise
applications. Is it allowed to create a JPanel and use its paint()
method to draw on a BufferedImage which I then send to a Web client as a
PNG. Or is it already forbidden to do anything that starts an "AWT-*"
thread?
Cheers,
Simon