This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes want to make it an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "want to make it an application " Watch "want to make it an application " New topic

want to make it an application

abhay jain
Ranch Hand

Joined: Jun 03, 2011
Posts: 130
i saw this example in a book i would like to make it an application program ( main method as starting point )
i have tried a lot but did not get success .. can you please help me ?

i don't know that in which section i should put this post
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10733

Change JApplet->JFrame
Change init to constructor
Write a main method which will create and show the frame instance

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: want to make it an application
It's not a secret anymore!