JFC And Swing


Guided By:             Submitted By:
Mahendra Singh Tomar   Komal Gandhi
CONTENTS
1. What is Java Swing…?

2. Features of Swing..

3. Java Swing Components…

4. Java Layout Management...

5. Java Events Handling…

6. Conclusion…
What is Java Swing ?

• Part of the Java Foundation Classes (JFC)

• Provides a rich set of GUI components.

• Used to create a Java program with a graphical
  user interface (GUI)
Features Of Swing

1)   Java Look and Feel

2) Data Transfer

3) Internationalization and Localization

4) Accessibility

5) System Tray Icon Support
Java Swing Components…

•    Top Level Containers
•   General Purpose Containers
•   Special Purpose Containers
•   Basic Controls
•   Uneditable Information Displays
•   Interactive Displays of Highly Formatted
    Information
Top Level Containers

• Window
   -Dialog
   -Frame
General Purpose Containers

• Panel :-

• Toolbar:-

• Scroll Pane:-
Special Purpose Containers

 • Internal
   Frame

 • Layered
   Pane

 • Root Pane
Basic Controls

 • Buttons

 • Combo
   Box

 • List

 • Menu
Uneditable Information
Displays

• Label

• Progress
  Bar
Interactive Displays of Highly
Formatted Information
Java Layout Management...

1) BorderLayout

2) FlowLayout

3) GridBagLayout

4) GridLayout
Java Events Handling…
Types of Event Listeners

1) ActionListener

2) WindowListener

3) MouseListener

4) MouseMotionListener

5) ComponentListener
Implementing an Event
Handler

• Implement the methods in the listener
  interface to handle the event.
Conclusion

• You can use any helpful tools out there that are
  for Java development like eclipse IDE, NetBeans
  IDE.

• Lacks live graphical and interactive help while
  developing.
Thank You

Java Swing