473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Program Shut Down

JoeMac3313
I am trying to set an exit method where the program terminates. I have researched the System.exit(0); and it seems that this is not the preferred method in java. I am writing on a windows based platform.
Jul 13 '07 #1
4 1246
JosAH
11,448 Expert 8TB
I am trying to set an exit method where the program terminates. I have researched the System.exit(0); and it seems that this is not the preferred method in java. I am writing on a windows based platform.
Most likely you'll have one or more frames in your application? If so have a look
at the options you have when you press the top-right 'X' of a JFrame.

kind regards,

Jos
Jul 13 '07 #2
I am sorry that my post was vague
Jul 13 '07 #3
JosAH
11,448 Expert 8TB
I am sorry that my post was vague
No need to apologize; try again then ;-)

kind regards,

Jos
Jul 13 '07 #4
Thanks figured it out
Jul 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Brian Roberts | last post by:
I have a command line Python program that sometimes takes a bit (several minutes) to run. I want to provide an optional method for an impatient user (me!) to check the status of the program. The...
1
by: Phoenix | last post by:
Is there any way to disable being able to shut down a program totally? I would have to allow it to be closed when the computer is shutting down or the user is logging out, but other than that it...
6
by: _andrea.l | last post by:
I'd like to write a program that running all the time: just a simple program, but written in php. 1)How can i do that? 2) I'd like that this program listens on a port to recive a message: how can...
4
by: Diogo Alves - Software Developer | last post by:
Hi, I have a application developed by me in C# that does not let windows shut down! What is the problem? is this a Framework bug? I would like to receive some feedback about this issue
4
by: John | last post by:
I was running a simple calculator program in visualbasic.net 2002 with a windows applications on XP Home, when this message popup as a Microsoft Development Environment box and said following:...
2
by: Brian Worth | last post by:
I have just upgraded from VB 4.0 to VB .NET 2002. One program under VB 4.0 was able to shut down or restart the (windows XP) machine using a series of API calls. (Getlasterror, GetCurrentProcess,...
5
by: scorpion53061 | last post by:
Is there a way that anyone knows to force a vb.net program to shut down and then restart itself?
6
sashi
by: sashi | last post by:
Shut down Windows For various reasons you may require a shut down of Windows to happen programmatically. For instance if the installation of your program requires system reconfiguration. The...
7
by: cmdolcet69 | last post by:
Does anyone know how i could save a user textbox entery value and then when the program is shut down it would save that value for the next time so that it appears when the user start the program...
5
by: Sheena777 | last post by:
I have a program that I have created and that is permanently running in the back ground on a user's PC. This program is used to check if a finger print scanner is on and if not it will be restarted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.