what is the diff's between swing and applet?
Answers were Sorted based on User's Feedback
Answer / meenu
1. applets are dependent on windows..swings are independent.
2. applets are heavy weight.. swings are light weight.
3. applets required browser.. swings not required.
4. applets does not need any main method.. swings need.
5. to add applet we use java.. for swings javax.
6. applets use awt layouts.. swings has its own layout.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / hrishikesh
1. Swing is light weght Component. Applet is heavy weight Components
2. Swing Using UIManager. Swing have look and feel according to user view u can change look and feel. Applet Does not provide this facility
3.Swing uses for stand lone Applications ,Swing have main method to execute the program. Applet need HTML code for Run the Applet
4. Swing uses MVC Model view Controller. Applet not
5. Swing have its own Layout ..like most popular Box Layout Applet uses Awt Layouts..like flowlayout
6. Swing have some Thread rules. Applet doent have any rule.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vigneswaran
|
applet | swing
___________________________________________________________
1.we are used empedded html |
in applet | but not used in swing
|
2.heavy weight | high weight
|
3.no Look and feel | Look and feel
|
|
|
|
|
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / prem
swing is a light weight comp.
applet is heavy weight comp.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / arun k
swings:
swings are the best for designing an application in java and it gives good look and feel
it is not depends on web browsers
it can run on any where through command prompt
it is a light weight
applet:
applets are the best for designing an application in java
it not gives look and feel
it is depends on web browsers
it can run through web browsers
it is a heavy weight
default layout is flow layout
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / imlepakshi
Swing : heavy weight
Applet : light weight
| Is This Answer Correct ? | 32 Yes | 94 No |
What are the components of swing?
Who created the swing?
What is Java Swing?
What is a component in swing?
when i run Frame program, it display output in supparate window.i try to close using "X" it not close.min'-' & max'+' are working.pls what is problem? i run in editplus. folowing program i given. import java.awt.*; class Form1 { Frame f1=new Frame("loginpage"); Label l1=new Label("username"); Label l2=new Label("password"); TextField tf1=new TextField(); TextField tf2=new TextField(); Button b1=new Button("submit"); Form1() { f1.setLayout(new FlowLayout()); f1.add(l1); f1.add(tf1); f1.add(l2); f1.add(tf2); f1.add(b1); f1.setSize(437,440); f1.setVisible(true); //f1.dispose(); } public static void main(String[] args) { Form1 f=new Form1(); } }
What are the advantages of java swing over angular?
What is the purpose of action interface in swing?
What does javax swing do?
What is swing components in java?
Explain the below Statement if(ae.getSource()==b1)
Why should the implementation of any swing callback (like a listener) execute quickly?
What is the mean of swing?