Jump to content

Get GUI to not kill itself when starting


Recommended Posts

Posted (edited)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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