Java GUI Framework Question:
Download Questions PDF

How to handle opening of database, file or network connection on a click of button?

Java GUI Framework Interview Question
Java GUI Framework Interview Question

Answer:

This one is one of the easy java swing interview question. Interviewer is interested on whether you know the basic principle of Java GUI development or not. answer is you should not do this operation in EDT thread instead spawn a new thread from actionListener or button and disable the button until operation gets completed to avoid resubmitting request. Only condition is that your GUI should always be responsive no matter what happens on network connection or database connection because these operations usually take time.

Download Java GUI Framework Interview Questions And Answers PDF

Previous QuestionNext Question
Write code to print following layout (mainly focused on GridBag layout)?Explain Prediction of output of code?