I have a JFrame and this JFrame has a JButton.
I want in JButton first show JDialog (display "Please wait") and execute other code then closing JDialog.
But when showing JDialog stopped to execute other code on JButton.
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.
Start the other processing on a
Thread(e.g. in aSwingWorker) and at the start of it, callmodalDialog.setVisible(true). At the end of the task callsetVisible(false).