• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Frames

 
Patrick Mugabe
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple screen developed using Frames.
I want to place an icon on the desktop so that I can just click on it and the screen appears.
Can someone take me through on how I can do this.
Please help.
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are on windows, then create a batch file (start-my-app.bat, or whatever) that starts your program and create a shortcut to that batch file. The batch file would look like:
java -cp "..." mypkg.MyApp -parms
Your PATH environment variable should contain the directory where Java is installed. You can override/augment the classpath if necessary. The "mypkg.MyApp" will be the full classname of your application (main) class. And the "-parms" represent any parameters that get passed to your class.
In other words, it should look just like whatever you type on the command line to get your class running.
It's a similar process on Linux/Unix.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic