This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run the program that uses Swing component

 
Elaine Hu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a question about running any Java program. Usually, after compiling the program successfully, I use the v1.3 interpreter to run the program under Command Prompt; for example: java SwingApplication
However, is Command Prompt the only way to open and run the program? I was wondering if it's possible to make the program automatically execute and run by double-clicking on a small icon, just like when double-clicking on the small ICQ icon, ICQ program opens up and run.
Thanks very much for the help!

 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a .bat file or whatever and put the commands to start the app in there. Then you can just double click the bat file.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or create an executable JAR file.
http://java.sun.com/docs/books/tutorial/jar/index.html

------------------
Happy Coding,
Gregg Bolinger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic