SlideShare ist ein Scribd-Unternehmen logo
1 von 12
SWING & SWT
A Tale of Two Java GUI Libraries
AWT
          (ABSTRACT WINDOW TOOLKIT)
 Oldest toolkit , part of java standard API
 It includes classes like Button, TextField, and Menu

 It also provides the necessary event handling
  mechanism
 AWT controls may behave differently under different
  operating systems
For example, it might be possible to right-click on a
  button under operating system A showing a context
  menu, but impossible to do so under operating system
  B
   It relies on the native GUI elements of each
    operating systems so known as“Platform
    dependent “

Example
create a Button, a native Windows button will show
  up if the application is running under windows, a
  native Mac OS button will show up if the application
  is running under Mac OS, a native Linux button will
  show up if the application is running under Linux,
  and so on.
 GUI components are drawn very quickly. This is
  knows as "native performance“
 In AWT, native code, written in a language like C or
  C++

   GUI components look natural for the users of each
    operating systems. This is knows as "native look
    and feel“

   AWT only include components that exist in ALL
    supported operating systems(least common
    denominator) so the problem came from here
SWING
o   Part of the Java standard API
o   It includes classes like JButton, JTextFiled, JMenu,
    and JTree
   Advantage
       It still relies on AWT classes for event handling
        but for rendering components it relies on the
        Java2D API to draw components from scratch

       Does not suffer from the "least common
        denominator“ because it have Swing classes
        defining how to draw Swing controls from scratch

       "platform independence“
   "Pluggable look and feel" that allows controls to
        appear with a different look and feel if desired
       Swing components follow the Model-View-
        Controller (MVC) paradigm, and thus can
        provide a much more flexible UI.
   Disadvantage

       Rendering Swing components is slower than
        rendering AWT components because they are
        drawn from scratch
       Large memory
       When a change happen to the operating system
        so it doesn’t update automatically
SWT
             (STANDARD WIDGET TOOLKIT)
   It is NOT part of the Java standard API
   Advantage
       SWT tries to combine the best of AWT and
        Swing
       There is a native component written for each
        operating system called Java Native interface
       Use less memory
       Rich set of widgets which used to make good
        looking
       Run faster
       When a change happen to the operating system
        so it update automatically
   Disadvantage
    • Also you have to build separate installers for
      every operating systems which you are to
      support.
    • Native look and Feel support
SUMMARY


   There is a big debate between Java developers
    about whether Swing or SWT is better

   So it up to you to choose the most appropriate GUI
    library (SWT or Swing ) to your application
REFERENCE :
 http://www.developer.com/java/other/article.php/217
  9061/Swing-and-SWT-A-Tale-of-Two-Java-GUI-
  Libraries.htm
 http://forum.codecall.net/lounge/37501-swt-vs-
  swing-debate.html
 http://www.ahmadsoft.org/articles/swingswt/swings
  wt.html
 http://www.javalobby.org/java/forums/t63186.html

 http://www.youtube.com/watch?v=1ND16H-ew_4
Thank you 

Weitere ähnliche Inhalte

Was ist angesagt?

Tong Quan Ve Malware
Tong Quan Ve MalwareTong Quan Ve Malware
Tong Quan Ve Malwareguest4a3ff91
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecturedeepakshare
 
Qubes os presentation_to_clug_20150727
Qubes os presentation_to_clug_20150727Qubes os presentation_to_clug_20150727
Qubes os presentation_to_clug_20150727csirac2
 
Ransomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfSecurity Bootcamp
 
Android life cycle
Android life cycleAndroid life cycle
Android life cycle瑋琮 林
 
Windows 7 Architecture
Windows 7 ArchitectureWindows 7 Architecture
Windows 7 ArchitectureDaniyal Khan
 
Virus and Malicious Code Chapter 5
Virus and Malicious Code Chapter 5Virus and Malicious Code Chapter 5
Virus and Malicious Code Chapter 5AfiqEfendy Zaen
 
Flutter session 01
Flutter session 01Flutter session 01
Flutter session 01DSC IEM
 
Layer architecture of ios (1)
Layer architecture of ios (1)Layer architecture of ios (1)
Layer architecture of ios (1)dwipalp
 
Multithreading
MultithreadingMultithreading
MultithreadingA B Shinde
 
Operating system vulnerability and control
Operating system vulnerability and control Operating system vulnerability and control
Operating system vulnerability and control أحلام انصارى
 
cpu scheduling
cpu schedulingcpu scheduling
cpu schedulinghashim102
 
Android intents, notification and broadcast recievers
Android intents, notification and broadcast recieversAndroid intents, notification and broadcast recievers
Android intents, notification and broadcast recieversUtkarsh Mankad
 
Android notification
Android notificationAndroid notification
Android notificationKrazy Koder
 
GDSC Flutter Forward Workshop.pptx
GDSC Flutter Forward Workshop.pptxGDSC Flutter Forward Workshop.pptx
GDSC Flutter Forward Workshop.pptxGDSCVJTI
 

Was ist angesagt? (20)

Tong Quan Ve Malware
Tong Quan Ve MalwareTong Quan Ve Malware
Tong Quan Ve Malware
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
Qubes os presentation_to_clug_20150727
Qubes os presentation_to_clug_20150727Qubes os presentation_to_clug_20150727
Qubes os presentation_to_clug_20150727
 
Ransomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdf
 
Virus and worms
Virus and wormsVirus and worms
Virus and worms
 
Android life cycle
Android life cycleAndroid life cycle
Android life cycle
 
Windows 7 Architecture
Windows 7 ArchitectureWindows 7 Architecture
Windows 7 Architecture
 
Virus and Malicious Code Chapter 5
Virus and Malicious Code Chapter 5Virus and Malicious Code Chapter 5
Virus and Malicious Code Chapter 5
 
Flutter session 01
Flutter session 01Flutter session 01
Flutter session 01
 
Sqlite
SqliteSqlite
Sqlite
 
Layer architecture of ios (1)
Layer architecture of ios (1)Layer architecture of ios (1)
Layer architecture of ios (1)
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Operating system vulnerability and control
Operating system vulnerability and control Operating system vulnerability and control
Operating system vulnerability and control
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
Android intents, notification and broadcast recievers
Android intents, notification and broadcast recieversAndroid intents, notification and broadcast recievers
Android intents, notification and broadcast recievers
 
IOS security
IOS securityIOS security
IOS security
 
Android notification
Android notificationAndroid notification
Android notification
 
GDSC Flutter Forward Workshop.pptx
GDSC Flutter Forward Workshop.pptxGDSC Flutter Forward Workshop.pptx
GDSC Flutter Forward Workshop.pptx
 
Hacking tutorial
Hacking tutorialHacking tutorial
Hacking tutorial
 

Ähnlich wie Swt vs swing

GUI design using JAVAFX.ppt
GUI design using JAVAFX.pptGUI design using JAVAFX.ppt
GUI design using JAVAFX.pptTabassumMaktum
 
1. introduction to swing
1. introduction to swing1. introduction to swing
1. introduction to swingTuan Ngo
 
Windows Programming with Swing
Windows Programming with SwingWindows Programming with Swing
Windows Programming with Swingbackdoor
 
Introduction To The Eclipse Platform
Introduction To The Eclipse PlatformIntroduction To The Eclipse Platform
Introduction To The Eclipse Platformciukes
 
Swing !!! y shikhar!!
Swing !!! y shikhar!!Swing !!! y shikhar!!
Swing !!! y shikhar!!shikhar199
 
Departmental store management sytem
Departmental store management sytemDepartmental store management sytem
Departmental store management sytemjatin hingorani
 
Eclipse vs Netbean vs Railo
Eclipse vs Netbean vs RailoEclipse vs Netbean vs Railo
Eclipse vs Netbean vs RailoMohd Safian
 
JAVA Programming : Topic JAVA Programming Swing
JAVA Programming : Topic JAVA Programming SwingJAVA Programming : Topic JAVA Programming Swing
JAVA Programming : Topic JAVA Programming SwingNavya Francis
 
Advanced java lab swing mvc awt
Advanced java lab swing mvc awtAdvanced java lab swing mvc awt
Advanced java lab swing mvc awtvishal choudhary
 
JAVA GUI
JAVA GUIJAVA GUI
JAVA GUIIIITA
 
Java AWT and Java FX
Java AWT and Java FXJava AWT and Java FX
Java AWT and Java FXpratikkadam78
 
Slot04 creating gui
Slot04 creating guiSlot04 creating gui
Slot04 creating guiViên Mai
 
Tycs advance java sem 5 unit 1,2,3,4 (2017)
Tycs advance java sem 5 unit 1,2,3,4 (2017)Tycs advance java sem 5 unit 1,2,3,4 (2017)
Tycs advance java sem 5 unit 1,2,3,4 (2017)WE-IT TUTORIALS
 

Ähnlich wie Swt vs swing (20)

GUI design using JAVAFX.ppt
GUI design using JAVAFX.pptGUI design using JAVAFX.ppt
GUI design using JAVAFX.ppt
 
Report swings
Report swingsReport swings
Report swings
 
Java swing 1
Java swing 1Java swing 1
Java swing 1
 
Chapter 1 swings
Chapter 1 swingsChapter 1 swings
Chapter 1 swings
 
Swing components
Swing components Swing components
Swing components
 
1. introduction to swing
1. introduction to swing1. introduction to swing
1. introduction to swing
 
Windows Programming with Swing
Windows Programming with SwingWindows Programming with Swing
Windows Programming with Swing
 
Introduction To The Eclipse Platform
Introduction To The Eclipse PlatformIntroduction To The Eclipse Platform
Introduction To The Eclipse Platform
 
Swing !!! y shikhar!!
Swing !!! y shikhar!!Swing !!! y shikhar!!
Swing !!! y shikhar!!
 
Departmental store management sytem
Departmental store management sytemDepartmental store management sytem
Departmental store management sytem
 
Advanced swing
Advanced swingAdvanced swing
Advanced swing
 
Eclipse vs Netbean vs Railo
Eclipse vs Netbean vs RailoEclipse vs Netbean vs Railo
Eclipse vs Netbean vs Railo
 
JAVA Programming : Topic JAVA Programming Swing
JAVA Programming : Topic JAVA Programming SwingJAVA Programming : Topic JAVA Programming Swing
JAVA Programming : Topic JAVA Programming Swing
 
Advanced java lab swing mvc awt
Advanced java lab swing mvc awtAdvanced java lab swing mvc awt
Advanced java lab swing mvc awt
 
Lecture 19
Lecture 19Lecture 19
Lecture 19
 
JAVA GUI
JAVA GUIJAVA GUI
JAVA GUI
 
Java AWT and Java FX
Java AWT and Java FXJava AWT and Java FX
Java AWT and Java FX
 
Slot04 creating gui
Slot04 creating guiSlot04 creating gui
Slot04 creating gui
 
Tycs advance java sem 5 unit 1,2,3,4 (2017)
Tycs advance java sem 5 unit 1,2,3,4 (2017)Tycs advance java sem 5 unit 1,2,3,4 (2017)
Tycs advance java sem 5 unit 1,2,3,4 (2017)
 
Java server face tutorial
Java server face tutorialJava server face tutorial
Java server face tutorial
 

Kürzlich hochgeladen

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 

Kürzlich hochgeladen (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Swt vs swing

  • 1. SWING & SWT A Tale of Two Java GUI Libraries
  • 2. AWT (ABSTRACT WINDOW TOOLKIT)  Oldest toolkit , part of java standard API  It includes classes like Button, TextField, and Menu  It also provides the necessary event handling mechanism  AWT controls may behave differently under different operating systems For example, it might be possible to right-click on a button under operating system A showing a context menu, but impossible to do so under operating system B
  • 3. It relies on the native GUI elements of each operating systems so known as“Platform dependent “ Example create a Button, a native Windows button will show up if the application is running under windows, a native Mac OS button will show up if the application is running under Mac OS, a native Linux button will show up if the application is running under Linux, and so on.
  • 4.
  • 5.  GUI components are drawn very quickly. This is knows as "native performance“  In AWT, native code, written in a language like C or C++  GUI components look natural for the users of each operating systems. This is knows as "native look and feel“  AWT only include components that exist in ALL supported operating systems(least common denominator) so the problem came from here
  • 6. SWING o Part of the Java standard API o It includes classes like JButton, JTextFiled, JMenu, and JTree  Advantage  It still relies on AWT classes for event handling but for rendering components it relies on the Java2D API to draw components from scratch  Does not suffer from the "least common denominator“ because it have Swing classes defining how to draw Swing controls from scratch  "platform independence“
  • 7. "Pluggable look and feel" that allows controls to appear with a different look and feel if desired  Swing components follow the Model-View- Controller (MVC) paradigm, and thus can provide a much more flexible UI.  Disadvantage  Rendering Swing components is slower than rendering AWT components because they are drawn from scratch  Large memory  When a change happen to the operating system so it doesn’t update automatically
  • 8. SWT (STANDARD WIDGET TOOLKIT)  It is NOT part of the Java standard API  Advantage  SWT tries to combine the best of AWT and Swing  There is a native component written for each operating system called Java Native interface  Use less memory  Rich set of widgets which used to make good looking  Run faster  When a change happen to the operating system so it update automatically
  • 9. Disadvantage • Also you have to build separate installers for every operating systems which you are to support. • Native look and Feel support
  • 10. SUMMARY  There is a big debate between Java developers about whether Swing or SWT is better  So it up to you to choose the most appropriate GUI library (SWT or Swing ) to your application
  • 11. REFERENCE :  http://www.developer.com/java/other/article.php/217 9061/Swing-and-SWT-A-Tale-of-Two-Java-GUI- Libraries.htm  http://forum.codecall.net/lounge/37501-swt-vs- swing-debate.html  http://www.ahmadsoft.org/articles/swingswt/swings wt.html  http://www.javalobby.org/java/forums/t63186.html  http://www.youtube.com/watch?v=1ND16H-ew_4