What will happen if we are creating the Java Swing application in main thread? Rule of thumb is that we have to start the application in EDT??please help.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Q1. Rule of thumb is that we have to start the application in EDT
Not really a rule of thumb – more like a requirement specified by the library:
Q2. What will happen if we are creating the Java Swing application in main thread?
It might work or not: the behaviour is unspecified. An example is given on that same page: