difference between applet and swings

Ads

 
 

Share on Google+Share on Google+

V.A.G.Raju
difference between applet and swings
3 Answer(s)      7 years ago
Posted in : Swing AWT

what are the major difference between swing and applets

Ads
View Answers

October 26, 2010 at 4:11 PM


Hello Friend,

Differences:

1) AWT stands for Abstract windows toolkit whereas le Swing is also called as JFC?s (Java Foundation classes).

2) AWT components use native methods Swing components use the methods that are written in Java. Therefore AWT is heavy weight component and swing is light weight component.

3) Light weight components have transparent pixels where as heavy weight is always opaque.

4) Light weight components are non-rectangular whereas Heavy weight components are rectangular

5) Swings components are made in pure java and they are platform independent whereas AWT components are platform dependent.

6) Swing provides look and feel feature whereas this feature is not supported by AWT.

Thanks



October 26, 2010 at 4:17 PM


Hi Friend,

Difference between Swing and Applet:

1)Swing is light weight component while applet is not.

2)Applet have no main method, but swing have.

3)Swing have have look and feel while Applet Does not provide this facility

4)Swing uses for stand lone Applications while Applet need HTML code for Run the Applet

5)Swing have its own Layout while Applet uses Awt Layout.

Thanks



September 6, 2011 at 1:41 AM


To execute a swing no need of any browser.... while to execute a Applet Program we should need any one browser like...AppletViewer, WebBrowser etc.....


Ads









Related Tutorials/Questions & Answers:
difference between applet and swings
difference between applet and swings  what are the major difference between swing and applets   Hello Friend, Differences: 1) AWT stands... between Swing and Applet: 1)Swing is light weight component while applet
difference - Applet
difference  what is the difference in between awt and swing package... and what is the difference in between frame,panel  Hi Friend.... Difference between frame and panel: 1)A frame is a resizable movalble window
Advertisements
Swings - Applet
Swings  Sir, I have developed an application in swings i want to call that class in applet. is it possible. or otherwise is there any way to deploy... extends Applet{ CountCharacters c=new CountCharacters(); Label l1,l2,l; TextField
Difference between DispatchAction and LookupDispatchAction
Difference between DispatchAction and LookupDispatchAction  What is the Difference between DispatchAction and LookupDispatchAction
difference between SessionState and ViewState
difference between SessionState and ViewState  What is the difference between SessionState and ViewState
difference between ForwardAction and IncludeAction
difference between ForwardAction and IncludeAction  What is the difference between ForwardAction and IncludeAction
Difference between struts and JSF
Difference between struts and JSF  What is the difference between struts and JSF
difference between == and === operators?
difference between == and === operators?  Is (====) operator available in java or not? difference between
difference between varchar & varchar2?
difference between varchar & varchar2?  What is the difference between varchar & varchar2
Difference between 3d and 4d
Difference between 3d and 4d  what is the difference between 3d and 4d
What is the difference between the >> and >>> operators?
What is the difference between the >> and >>> operators?   hi, What is the difference between the >> and >>> operators? Thanks
Difference between Mysql and SQL
Difference between Mysql and SQL  hello, What is the difference between Mysql and SQL??   hii, SQL is structural quary language but mysql is database package
Difference between Timer and Thread?
Difference between Timer and Thread?  Can anyone tell me about the difference between Timer and Thread, Why we need to have Timer in case we have Thread implimentation startegy in Java
Difference between JSP and Servlets
Difference between JSP and Servlets  What is the difference between JSP and Servlets ?   JSP is used mainly for presentation only. A JSP can only be HttpServlet that means the only supported protocol in JSP is HTTP
difference between lock and synchronization
difference between lock and synchronization  Hi, I am new in java please anyone tell me difference between lock and synchronization in java. its urgent. Thank in advance   Please visit the following link: Lock
Difference between SCJP Exams
Difference between SCJP Exams  What is the differences between SCJP 5 (310 - 055) exam and SCJP 6 (310 - 065) exam??? Thank You In Adv
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
Difference between request.getRequestDispatcher() and context.getRequestDispatcher()
Difference between request.getRequestDispatcher() and context.getRequestDispatcher()  What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?   request.getRequestDispatcher
Difference between forward and sendRedirect
Difference between forward and sendRedirect  What's the difference between forward and sendRedirect?   RequestDispatcher.forward() and HttpServletResponse.sendRedirect() are the two methods available for URL redirecting
Difference between ServletContext and ServletConfig
Difference between ServletContext and ServletConfig   What is the difference between ServletContext and ServletConfig?   ServletContext :Defines a set of methods that a servlet uses to communicate with its servlet
Difference between translate and replace
Difference between translate and replace   hiii, What is the difference between translate and replace?   hello, Replace replace every instence of character with character sting by the given charator of string
Difference between GET and POST
Difference between GET and POST   Difference between GET and POST ?   The difference between a GET and a POST is the way data is transferred to a servlet. With a GET, the URL will show each name/value pair on the query
What is the difference between PHP4 and PHP5?
What is the difference between PHP4 and PHP5?  What is the difference between PHP4 and PHP5
What is difference between a PROCEDURE & FUNCTION ?
What is difference between a PROCEDURE & FUNCTION ?  What is difference between a PROCEDURE & FUNCTION
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
Difference between XML and HTML - XML
Difference between XML and HTML  What is the basic Difference between XML and HTML
difference between <%@ include ...> and <jsp:include>
difference between <%@ include ...> and   What is the difference between <%@ include ...> (directive include) and <jsp:include>
what is the Difference between weblogic and jboss?
what is the Difference between weblogic and jboss?  what is the Difference between weblogic and jboss
what is the difference between pop and oop
what is the difference between pop and oop  what is the difference between pop and oop
difference between hashcode,reference in java
difference between hashcode,reference in java  difference between hashcode,reference in java

Ads

 
Advertisement null

Ads