Swing is a set of classes under JFC that provide
lightweight visual component , enable creation of
attractive GUI. But Applet is heavyweight component and
needs web browser or tool known as AppletViewer.
Applet have no main method, but swing have.
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
Apple :to execute Applet programe we should need any one
browser like Appletviewer,web browser.
Because Applet using browser container to run and all
action control with in browser container
swing :to execute swing no need any browser By which we can
create stand alone application
But Here we have to add container and maintain all action
control with in frame container
Applet : we dependent on brower to execute and action
swing : own
simply Instance problem
swing:all classes start with J letter
applet:not
swing:componants added on container
applet:no componants addedon container
swing:u can provide tooltiptext to every componants using
metod setToolTipText();
applet:not
Swing is lightweigt process and run through main() method
in case of browser
Applet is heavyweight process and run within only browser
or with the help of browser
when we right click on the JTable using mouse it works
properly but how to right click on JTable in java using
keyboard what should be the code for the same.....?
Thanks
Nitin
When i m clicking on next another frame is open but i want
to hide the previous frame...........but it is not
happening....still both frame are visible........how to
make one frame to hide.......please help me.......