Java GUI Framework Question:

What is Event-Driven-Thread (EDT) in Swing?

Tweet Share WhatsApp

Answer:

Event-Driven-Thread or EDT is a special thread in Swing and AWT. Event-Driven Thread is used to draw graphics and listen for events in Swing. You will get a bonus point if you able to highlight that time consuming operations like connecting to database, opening a file or connecting to network should not be done on EDT thread because it could lead to freezing GUI because of blocking and time consuming nature of these operations instead they should be done on separate thread and EDT can just be used to spawn those thread on a button click or mouse click.

Download Java GUI Framework PDF Read All 28 Java GUI Framework Questions
Previous QuestionNext Question
What is an SSCCE?Does Swing is thread safe? What do you mean by swing is not thread-safe?