Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

1.what is the exact difference between applet and frame?

2.Do we use main method in frames?

Answer Posted / amarnath88888

I think you are trying to ask difference between applet
window and frame.

If window it is already present there if you extend Applet
class to your class. You can create the components inside
the window and no need to write the code in main() method.
Its enough to write in init() or paint() method.

If it is a Frame then you need to extend Frame class to your
class. Then you can place the components inside frame. But
you need to include setSize(x,y) for setting the size of the
frame and setVisible(true) for displaying the frame in the
window.
And you need to write main() method also. there you need to
create object for frame class which you have created and
call the methods to display the frame.

Is This Answer Correct ?    26 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the difference between creating string as new () and literal.

1021


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

918


Where import statement is used in a java program?

1081


What is skeleton and stub?

987


What is int lol?

1092


What is temp in java?

945


Write a program to print count of empty strings in java 8?

940


Define Multiprogramming and Multiprocessing in java.

1066


What is string in java is it a data type?

952


What is Major and importance difference between for and foreach loop ?

1077


What is the use of coding?

914


Difference between comparator and comparable in java?

1031


What is member in java?

942


What are strings in physics?

964


How do you square a number in java?

1003