Results 1 to 2 of 2
- 07-23-2010, 11:35 AM #1
Member
- Join Date
- Jul 2010
- Posts
- 6
- Rep Power
- 0
- 07-23-2010, 12:55 PM #2
Not sure what you are asking.run a jar file from a button click in swing
You can run/execute a program from a java program by using the Process and Runtime classes. Create a command line to "run the jar file" and pass it to the methods of the above classes to execute it.
Have the button listener start a thread to do the above.
Swing has nothing to do with this problem.
Similar Threads
-
run a jar file from javascript/html on click of a button
By khsameer in forum New To JavaReplies: 2Last Post: 11-03-2009, 05:11 PM -
How we can open a file with a click in button
By kostinio in forum AWT / SwingReplies: 2Last Post: 11-01-2009, 04:46 PM -
Generate csv file on a button click
By violeta in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2009, 02:54 AM -
deselecting a button after the click.
By ramsrocker in forum New To JavaReplies: 10Last Post: 02-15-2009, 06:52 AM -
Swing - catching click button event
By Java Tip in forum Java TipReplies: 0Last Post: 03-11-2008, 11:03 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks