what is the diff's between swing and applet?

Answer Posted / sourabh

Component
Swing :Swing is light weght Component
Applet : Applet is heavy weight Components

Look and feel
Swing: Using UIManager swing have look and feel according
to user view u can change look and feel
Applet: Applet Does not provide this facility

Compile
Swing : swing uses for stand lone Applications ,Swing
have main method to execute the program
Applet : Applet need HTML code for Run the Applet

Swing : uses MVC Model view Controller
Applet : not

Swing : swing have its own Layout ..like most popular Box
Layout
Applet : Applet uses Awt Layouts..like flowlayout

Thread
Swing :Swing have some Thread rules
Applet :There is no any rule

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class be it?s own event handler? Explain how to implement this?

542


What's java swing?

571


What is the use of jfc in java swing?

660


What is the difference between invokeAndWait() and invokeLater()?

597


Why should the implementation of any swing callback (like a listener) execute quickly?

569






What is the difference between swing and awt?

540


What is jfc swing in java?

531


Which layout does swing use by default?

498


What is frame in java swing?

542


What is the use of double buffering in swings?

560


What is the function of internal frame in swing?

613


What is container in java swing?

534


What are the two key features of swing?

536


Where is java swing used?

584


How to render an html page using only swing.

595