Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Close entire bioera application suddenly?
Reply to topic
Author Message
BHR



Joined: Nov 25, 2014
Posts: 20

PostPosted: May 15, 2015 6:42 PM    Post subject: Close entire bioera application suddenly?

hi
dear jarek.
I developed a java application as custom element (jframe)
when i close the jframe element all the bioera application closed!
why?
plz help me about this.
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: May 15, 2015 6:52 PM    Post subject:

I would need more information about the code you use and what you mean by "close the jframe element".

Do you see any errors or messages on the console when that happens?
BHR



Joined: Nov 25, 2014
Posts: 20

PostPosted: May 17, 2015 7:56 PM    Post subject:

hi dear jarek
tnx for your reply
I developed an jframe as custom element set its default close operation (as default) on close
however I press the close button over jframe right upper corner without any error all bioera application closed suddenly without any error and message is there need to any explanation?
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: May 17, 2015 9:29 PM    Post subject:

You probably are using EXIT_ON_CLOSE option. It causes entire java application to exit. You should not do this.
BHR



Joined: Nov 25, 2014
Posts: 20

PostPosted: May 18, 2015 5:00 AM    Post subject: what is the solution

I want to close just the custom element!
is there any way?
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: May 18, 2015 4:01 PM    Post subject:

Yes, for example:

setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE)
BHR



Joined: Nov 25, 2014
Posts: 20

PostPosted: May 19, 2015 3:52 AM    Post subject:

thanks dear jarek its ok now
Reply to topic