Solved

Java

Posted on 2007-03-18
3
154 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

860 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