aspose file tools*
The moose likes Beginning Java and the fly likes why its not running or how to run it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why its not running or how to run it" Watch "why its not running or how to run it" New topic
Author

why its not running or how to run it

yogesh raipure
Greenhorn

Joined: May 04, 2012
Posts: 9
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

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.


Mohamed Sanaulla | My Blog
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Oct 13, 2005
Posts: 38851
    
  23
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

Joined: May 04, 2012
Posts: 9
thanks a lot... i got it.. really its coolest forum.. i really need to learn a lot from this forum...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: why its not running or how to run it