File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes stop() and start() ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "stop() and start() ??" Watch "stop() and start() ??" New topic

stop() and start() ??

Robin Richardson
Ranch Hand

Joined: Mar 01, 2001
Posts: 37
I have been able to use a start method to start three different programs, have had to set up a separate stop() class for each program. Is there a way to start each one up without a separate stop class for each one?
Also, have not been able to use the stop() class. It just starts the program, but doesn't stop it. What might I have done wrong? I put:
public void start() {}
public void stop() {}
should I possibly reverse the order?
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
This doesn't seem to have anything to do with Java I/O (Input/Output), so I'm moving this to Java in General (Beginner).

"I'm not back." - Bill Harding, Twister
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Are you talking about threads here? Or starting a program using a process and Runtime?
Also, you surely mean start and stop methods, not classes (I hope).

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: stop() and start() ??
It's not a secret anymore!