I have read JAVA SWING UI become more efficient with the help of threads.But i dont know how the java threads makes the UI more perfect in Swing.
Please Enlighten me on this…
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.
Using threads you can do work asynchronously without blocking the UI. Lets say you have two buttons Search google and Search bing ( yes on your swing UI can not think of better analagy right now 🙂 )
If you were not using threads your application window will block i.e. you will not be able to click other button or do any thing else until first function has completed but with thread nothing is blocking and you can continue on working and using you UI even click both at the same time .