Jump to content

Get GUI to not kill itself when starting


BelethDev

Recommended Posts

57 minutes ago, BelethDev said:

Sorry for a noob question, I'm a C dev so all this OOP is melting my brain. I'm working on a GUI for my script, but everytime I press the start button and the gui destroys itself, the script kills itself instead of running. Any ideas on how to solve it?

 

I believe this is what you are looking for in your GUI class^^

setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Edited by Khaleesi
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...