• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame Shortcut

 
Krishna Shubha
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a project I am using JFrame. I am not able to create a short cut so that if some one clicks on that the first frame should open.I am ready with the project except this Please help
Thanks in advance
Yours
KK
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi krishna,
i hope u r able to run ur project from command line. so do the simplest thing.
1) copy the whole command line in a file.and save it as .bat file. and now create a short cut for this bat file.
hope this works for u
regards
deekasha
 
Krishna Shubha
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI, Deekasha,
Thanks a lot I will try it and tell u.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Deekasha,
No I did not get that The command prompt flashes and goes off. no Frame appears. Any hint Please??
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi krishna,
the most obvious problem may be that u r not specifying the classpath in your command.
i'm successfully using this in my project.
so specify full path/classpath in the command that u r writing in ur batch file.
for example contents of one of my batch file lok like -
d:\jdk\bin\java -classpath %classpath%;d:\project mainPackage.mainClass
so specify path\classpath completely and it'll run
regards
deekasha


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!