Solved

Java

Posted on 2007-03-18
3
153 Views
Last Modified: 2010-03-31
I created a calculator program using GUI. My question is how can I keep the "main" method running so I can occasionally check for changes and make updates?
0
Comment
Question by:shahrine99
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18746106
If you are running a GUI program using AWT/ Swing, the program will keep running until the main Frame or JFrame is closed (and has a default operation of exit on close).

Otherwise you can put an infinite loop in the main () method or wait for the user to input something like "exit" in the command line.
0
 

Author Comment

by:shahrine99
ID: 18746110
thanks
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18746113
Glad to.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question