I am doing a small swing project and what i am trying is to generate a license file on a press of a activate button. But with my current implementation the file only generates when i close the program or exit the program. I want to genereate the file while the program is running directly when the uesr enters the license key and press activate.
#Java swing
12 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @atomic wing! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JOptionPane calls block the current thread until they're closed
Consider making your own UI with a JFrame and whatnot instead, if you want to do stuff in the meantime
Isnt their way around?
what do you mean by that?
i mean without making my own UI
nope
the components within the joptionpane are encapsulated; you cannot access the results until you close the pane
thanks for suggestion
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.