#Java swing

12 messages · Page 1 of 1 (latest)

atomic wing
#

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.

hard sluiceBOT
#

This post has been reserved for your question.

Hey @atomic wing! Please use /close or the Close Post button 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.

tropic sky
#

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

atomic wing
#

Isnt their way around?

tropic sky
#

what do you mean by that?

atomic wing
#

i mean without making my own UI

tropic sky
#

nope

#

the components within the joptionpane are encapsulated; you cannot access the results until you close the pane

atomic wing
#

thanks for suggestion

hard sluiceBOT
# atomic wing 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.