Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Sheriffs:
Rob Spoor
Junilu Lacar
paul wheaton
Saloon Keepers:
Stephan van Hulst
Tim Moores
Tim Holloway
Carey Brown
Scott Selikoff
Bartenders:
Piet Souris
Jj Roberts
fred rosenberger
Forum:
Swing / AWT / SWT
launching an application from swing button
Jane Dunne
Greenhorn
Posts: 15
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I want to launch an executable when the user clicks on a swing button but am not sure of how to do this. Any ideas?
Thanks.
Tal Nathan Tal Nathan
Greenhorn
Posts: 13
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
import java.lang.Runtime;
String
cmd = "cmd /c notepad.exe"
Runtime.getRuntime().exec(cmd);
Havent tested this, but it should do the trick.
Jane Dunne
Greenhorn
Posts: 15
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That's it. Thanks
alot
!
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
hi, please tell differences
Swing design possible to integrate with servlet
List of Patterns used in Java SE
My java swing application can not visible on linux
Redirecting of one frame to another frame
More...