• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why its not running or how to run it

 
yogesh raipure
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mohamed Sanaulla
Saloon Keeper
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yogesh, Welcome to JavaRanch.
What is the issue you are facing? Please check our Beginners FAQ on how to create and run java programs.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nothing happens by magic - what happens when you do this
new My_form();

look at the code, where does it go from there?

degugging 101

start again, start here

now add enough code to give the frame a size and show it

when you do that part OK, add the components (a few at a time)
when the components are showing OK, add your listeners.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I think the biggest mistake you made is writing lots of code. You should write a few lines, compile and run it. Then write a few lines more.
You have a problem about the setVisible call; you are never using it. If you don’t call setVisible, you will never see your GUI.
 
yogesh raipure
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot... i got it.. really its coolest forum.. i really need to learn a lot from this forum...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic