17
JFC And Swing Guided By: Submitted By: Mahendra Singh Tomar Komal Gandhi

Java Swing

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Java Swing

JFC And Swing

Guided By: Submitted By: Mahendra Singh Tomar Komal Gandhi

Page 2: Java Swing

CONTENTS1. What is Java Swing…?

2. Features of Swing..

3. Java Swing Components…

4. Java Layout Management...

5. Java Events Handling…

6. Conclusion…

Page 3: Java Swing

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)

Page 4: Java Swing

Features Of Swing

1) Java Look and Feel

2) Data Transfer

3) Internationalization and Localization

4) Accessibility

5) System Tray Icon Support

Page 5: Java Swing

Java Swing Components…

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

Information

Page 6: Java Swing

Top Level Containers

•Window -Dialog -Frame

Page 7: Java Swing

General Purpose Containers

• Panel :-

•Toolbar:-

•Scroll Pane:-

Page 8: Java Swing

Special Purpose Containers

• Internal Frame

• Layered Pane

• Root Pane

Page 9: Java Swing

Basic Controls

• Buttons

• Combo Box

• List

• Menu

Page 10: Java Swing

Uneditable Information Displays

•Label

•Progress Bar

Page 11: Java Swing

Interactive Displays of Highly Formatted Information

Page 12: Java Swing

Java Layout Management...

1) BorderLayout

2) FlowLayout

3) GridBagLayout

4) GridLayout

Page 13: Java Swing

Java Events Handling…

Page 14: Java Swing

Types of Event Listeners

1) ActionListener

2) WindowListener

3) MouseListener

4) MouseMotionListener

5) ComponentListener

Page 15: Java Swing

Implementing an Event Handler

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

Page 16: Java Swing

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.

Page 17: Java Swing

Thank You