I am using eclipse and have two programs. Program 1 is a simple GUI with some buttons. One of these buttons should start up program 2 when clicked.
How do I execute program 2 from within program 1?
Introduction to Event Listeners (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
This at least should give you a general idea
P.S. sorry for double post
Thanks, I know i need to apply an action listener but im concerned about how to execute the program from this program, since they are in different projects?
I did some search and I believe this is what you need.
Runtime (Java 2 Platform SE 5.0)
More precisely, the exec method.
Just be sure to do some searching and reading on your own on the matter since from what I saw, using it is not trivial.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks