Solved

Java

Posted on 2007-03-18
3
146 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:
mayankeagle earned 500 total points
Comment Utility
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
Comment Utility
thanks
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
Glad to.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
wordlen challenge 3 46
Problem to start Neon 20 48
recursion example 16 66
Java Jpanels and Jframe 8 18
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now