SlideShare a Scribd company logo
Mymensingh Engineering College
Department of Computer Science and
Engineering
Presentation
WELCOME
Team Members
2
Md.Masudur Rahman
Class Roll:305
Reg. No:2848
Susmoy Paul Soysob
Class Roll:302
Reg. No:2845
Sheikh Jami Jashim
Class Roll:304
Reg.No:2847
Mahfuja Khatun Trisha
Class Roll:306
Reg. No:2849
MD Shakil Anower
Samrat
Class Roll:307
Reg.No:2850
Izaz Uddin
Mahmud
Class Roll:308
Reg.No:2851
Manisha Dey
Lecturer
Dept. of Computer Science &
Engineering
Mymensingh Engineering College
Presented to
Introduction to
Java Swing
What is Java Swing?
❝ Java Swing is a combination
of programming components
that provides the ability to
create graphical user
interface(GUI) components. ❞
5
➔Java swing class
➔JListener
➔Layout Manager
➔Swing Apps
➔DAtabase
Java Swing can be categorized by these parts
6
Java Swing Class
➢ Jcomponent is one of the classes of Java Swing.
JComponent is the base class of all Swing
components except top-level containers. There are
some classes in JComponent. Ex- JFrame,
JPanel, JList etc.
8
Java Swing Class :
9
10
Some Programs using Java Swing Class
Example 1:
import javax.swing.JOptionPane;
public class ShowMessageDialog {
public static void main(String[] args)
{
JOptionPane.showMessageDialog(null,"java swing class");
}
}
Output
11
Example 2:
import javax.swing.JOptionPane;
public class JavaApplication {
public static void main(String[] args)
{
JOptionPane.showMessageDialog(null,"Correct Password","Warning", JOptionPane.ERROR_MESSAGE);
}
}
Output
JListener
In Java, an event listener is designed to process some kind of
event - it “listens” for an event ,such as a user’s mouse click
or key press,and then it responds accordingly as shown in
figure.
13
JListener :
JListener can be categorized by these parts:
❖ ActionListener
❖ ItemListener
❖ KeyListener
❖ FocusListener
❖ WindowListener
❖ ChangeListener
15
Some Programs using JListener:
Nam kano remove korecis
Output
16
Some Programs using JListener:
Output
Layout Managers
Shakil Anower Samrat
Layout Managers are used to organize elements in a specific order. The
Java Layout Managers allow us to customize the location and size of GUI
form components. LayoutManager is an interface that is implemented by
all layout manager classes.
The layout managers are represented by the following classes:
● BorderLayout
● FlowLayout
● GridLayout
● CardLayout
● GridBagLayout
● BoxLayout
● GroupLayout
● ScrollPaneLayout
● SpringLayout
Layout Managers:
The BorderLayout is used to organize the components into five regions:
north, south, east, west, and center. Each region (area) can only have one
component. It is the default layout of a frame or window. The BorderLayout
gives five constants for each region:
BorderLayout:
20
Program of Border layout :
21
Output of Border layout :
The Java GridLayout class is used to organize the components in a
rectangular grid. Each rectangle contains one component.
GridLayout:
The Java FlowLayout class is used to organize the components one after the
other in a line (in a flow). It is the panel's default layout.
FlowLayout:
The Java BoxLayout class is used to organize the components vertically or
horizontally.
BoxLayout:
The Java CardLayout class organizes the components such that only one is
shown at a time. It considers each component as a card, thus the name
CardLayout.
CardLayout:
The Java GridBagLayout class is used to organize components vertically,
horizontally, or along their baseline. The components may not be the same
size. Each GridBagLayout object maintains a dynamic, rectangular grid of
cells. Each component has one or more display cells.
GridBagLayout:
GroupLayout organizes its components and arranges them in a Container
structure. Instances of the Group class do the grouping.
GroupLayout:
A SpringLayout organizes the children of the container with which it is
connected according to a set of constraints. Constraints are just the
horizontal and vertical distances between the edges of two components. A
Constraint object represents each constraint.
SpringLayout:
ScrollPane utilizes the layout manager. ScrollPaneLayout is in control of nine
components: a viewport, two scrollbars, a row header, a column header, and
four "corner" components.
ScrollPaneLayout:
Swing Apps
Swing Apps
There are so many uses of Java Swing. We can create
application softwares using Java Swing.
In addition, Java Swing is a lightweight Java GUI widget
toolkit that includes a rich set of widgets.
31
Java Swing Applications:
Some Application Softwares using Java Swing are following :
● Calendar
● Calculator
● Multiplication Table
● Vowel Counter
● Student Management
● E-HealthCare Management
● Notepad
● Guessing Game
32
Database
Database
JDBC(Java Database Connectivity) is a tool or an
application programming interface that establishes a
connection between a standard database and java application
that intends to use that database.
34
JDBC’s architecture :
The JDBC interface consists of two layers:
1. The JDBC API supports communication between the
Java application and the JDBC manager.
2. The JDBC driver supports communication between the
JDBC manager and the database driver.
Simple database connections and queries:
The steps for connecting to a database with JDBC
are as follows:
1. Install or locate the database you want to access.
2. Include the JDBC library.
3. Ensure the JDBC driver you need is on your classpath.
4. Use the JDBC library to obtain a connection to the
database.
5. Use the connection to issue SQL commands.
6. Close the connection when you are finished.
37
Internet Sources:
https://www.coursehero.com/
https://celiksoftware.blogspot.com/
https://www.aasansolution.in/
https://cljdoc.org/
https://www.simplilearn.com/
Thanks!😊
38
See u Not
for mind
🥴
🥴

More Related Content

Similar to Java Swing Presentation-Shakil Anower Samrat

Graphical User Interface (GUI)
Graphical User Interface (GUI)Graphical User Interface (GUI)
Graphical User Interface (GUI)
SAGARDAVE29
 
01slide
01slide01slide
01slide
Horesh Kumar
 
Graphical User Interface in JAVA
Graphical User Interface in JAVAGraphical User Interface in JAVA
Graphical User Interface in JAVA
suraj pandey
 
JAVA (UNIT 5)
JAVA (UNIT 5)JAVA (UNIT 5)
JAVA (UNIT 5)
SURBHI SAROHA
 
Java intro
Java introJava intro
Java intro
husnara mohammad
 
java.pptx
java.pptxjava.pptx
60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual
Chitrarasan Kathiravan
 
Swing
SwingSwing
Chapter 1-Note.docx
Chapter 1-Note.docxChapter 1-Note.docx
Chapter 1-Note.docx
TigistTilahun1
 
Windows Programming with Swing
Windows Programming with SwingWindows Programming with Swing
Windows Programming with Swing
backdoor
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introduction
Ramlal Pawar
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
Knoldus Inc.
 
Demo on JavaFX
Demo on JavaFXDemo on JavaFX
Demo on JavaFX
Knoldus Inc.
 
Blog Management System
Blog Management SystemBlog Management System
Blog Management System
StudentRocks
 
Cavaros
CavarosCavaros
Cavaros
Too Jannarong
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptx
shoaibkhan716300
 
01slide (1)ffgfefge
01slide (1)ffgfefge01slide (1)ffgfefge
01slide (1)ffgfefge
bsnl007
 
Autograder presentation
Autograder presentationAutograder presentation
Autograder presentation
Chi Heng
 
FRU Kathmandu: Adopting with Change Frontend Architecture and Patterns
FRU Kathmandu: Adopting with Change Frontend Architecture and PatternsFRU Kathmandu: Adopting with Change Frontend Architecture and Patterns
FRU Kathmandu: Adopting with Change Frontend Architecture and Patterns
Leapfrog Technology Inc.
 
Understanding the System Design Life Cycle_ A Comprehensive Guide.pdf
Understanding the System Design Life Cycle_ A Comprehensive Guide.pdfUnderstanding the System Design Life Cycle_ A Comprehensive Guide.pdf
Understanding the System Design Life Cycle_ A Comprehensive Guide.pdf
Integrated IT Solutions
 

Similar to Java Swing Presentation-Shakil Anower Samrat (20)

Graphical User Interface (GUI)
Graphical User Interface (GUI)Graphical User Interface (GUI)
Graphical User Interface (GUI)
 
01slide
01slide01slide
01slide
 
Graphical User Interface in JAVA
Graphical User Interface in JAVAGraphical User Interface in JAVA
Graphical User Interface in JAVA
 
JAVA (UNIT 5)
JAVA (UNIT 5)JAVA (UNIT 5)
JAVA (UNIT 5)
 
Java intro
Java introJava intro
Java intro
 
java.pptx
java.pptxjava.pptx
java.pptx
 
60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual
 
Swing
SwingSwing
Swing
 
Chapter 1-Note.docx
Chapter 1-Note.docxChapter 1-Note.docx
Chapter 1-Note.docx
 
Windows Programming with Swing
Windows Programming with SwingWindows Programming with Swing
Windows Programming with Swing
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introduction
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 
Demo on JavaFX
Demo on JavaFXDemo on JavaFX
Demo on JavaFX
 
Blog Management System
Blog Management SystemBlog Management System
Blog Management System
 
Cavaros
CavarosCavaros
Cavaros
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptx
 
01slide (1)ffgfefge
01slide (1)ffgfefge01slide (1)ffgfefge
01slide (1)ffgfefge
 
Autograder presentation
Autograder presentationAutograder presentation
Autograder presentation
 
FRU Kathmandu: Adopting with Change Frontend Architecture and Patterns
FRU Kathmandu: Adopting with Change Frontend Architecture and PatternsFRU Kathmandu: Adopting with Change Frontend Architecture and Patterns
FRU Kathmandu: Adopting with Change Frontend Architecture and Patterns
 
Understanding the System Design Life Cycle_ A Comprehensive Guide.pdf
Understanding the System Design Life Cycle_ A Comprehensive Guide.pdfUnderstanding the System Design Life Cycle_ A Comprehensive Guide.pdf
Understanding the System Design Life Cycle_ A Comprehensive Guide.pdf
 

Recently uploaded

Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Undress Baby
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
What is Master Data Management by PiLog Group
What is Master Data Management by PiLog GroupWhat is Master Data Management by PiLog Group
What is Master Data Management by PiLog Group
aymanquadri279
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
Yara Milbes
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 

Recently uploaded (20)

Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
What is Master Data Management by PiLog Group
What is Master Data Management by PiLog GroupWhat is Master Data Management by PiLog Group
What is Master Data Management by PiLog Group
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 

Java Swing Presentation-Shakil Anower Samrat

  • 1. Mymensingh Engineering College Department of Computer Science and Engineering Presentation WELCOME
  • 2. Team Members 2 Md.Masudur Rahman Class Roll:305 Reg. No:2848 Susmoy Paul Soysob Class Roll:302 Reg. No:2845 Sheikh Jami Jashim Class Roll:304 Reg.No:2847 Mahfuja Khatun Trisha Class Roll:306 Reg. No:2849 MD Shakil Anower Samrat Class Roll:307 Reg.No:2850 Izaz Uddin Mahmud Class Roll:308 Reg.No:2851
  • 3. Manisha Dey Lecturer Dept. of Computer Science & Engineering Mymensingh Engineering College Presented to
  • 5. What is Java Swing? ❝ Java Swing is a combination of programming components that provides the ability to create graphical user interface(GUI) components. ❞ 5
  • 6. ➔Java swing class ➔JListener ➔Layout Manager ➔Swing Apps ➔DAtabase Java Swing can be categorized by these parts 6
  • 8. ➢ Jcomponent is one of the classes of Java Swing. JComponent is the base class of all Swing components except top-level containers. There are some classes in JComponent. Ex- JFrame, JPanel, JList etc. 8 Java Swing Class :
  • 9. 9
  • 10. 10 Some Programs using Java Swing Class Example 1: import javax.swing.JOptionPane; public class ShowMessageDialog { public static void main(String[] args) { JOptionPane.showMessageDialog(null,"java swing class"); } } Output
  • 11. 11 Example 2: import javax.swing.JOptionPane; public class JavaApplication { public static void main(String[] args) { JOptionPane.showMessageDialog(null,"Correct Password","Warning", JOptionPane.ERROR_MESSAGE); } } Output
  • 13. In Java, an event listener is designed to process some kind of event - it “listens” for an event ,such as a user’s mouse click or key press,and then it responds accordingly as shown in figure. 13 JListener :
  • 14. JListener can be categorized by these parts: ❖ ActionListener ❖ ItemListener ❖ KeyListener ❖ FocusListener ❖ WindowListener ❖ ChangeListener
  • 15. 15 Some Programs using JListener: Nam kano remove korecis Output
  • 16. 16 Some Programs using JListener: Output
  • 18. Layout Managers are used to organize elements in a specific order. The Java Layout Managers allow us to customize the location and size of GUI form components. LayoutManager is an interface that is implemented by all layout manager classes. The layout managers are represented by the following classes: ● BorderLayout ● FlowLayout ● GridLayout ● CardLayout ● GridBagLayout ● BoxLayout ● GroupLayout ● ScrollPaneLayout ● SpringLayout Layout Managers:
  • 19. The BorderLayout is used to organize the components into five regions: north, south, east, west, and center. Each region (area) can only have one component. It is the default layout of a frame or window. The BorderLayout gives five constants for each region: BorderLayout:
  • 22. The Java GridLayout class is used to organize the components in a rectangular grid. Each rectangle contains one component. GridLayout:
  • 23. The Java FlowLayout class is used to organize the components one after the other in a line (in a flow). It is the panel's default layout. FlowLayout:
  • 24. The Java BoxLayout class is used to organize the components vertically or horizontally. BoxLayout:
  • 25. The Java CardLayout class organizes the components such that only one is shown at a time. It considers each component as a card, thus the name CardLayout. CardLayout:
  • 26. The Java GridBagLayout class is used to organize components vertically, horizontally, or along their baseline. The components may not be the same size. Each GridBagLayout object maintains a dynamic, rectangular grid of cells. Each component has one or more display cells. GridBagLayout:
  • 27. GroupLayout organizes its components and arranges them in a Container structure. Instances of the Group class do the grouping. GroupLayout:
  • 28. A SpringLayout organizes the children of the container with which it is connected according to a set of constraints. Constraints are just the horizontal and vertical distances between the edges of two components. A Constraint object represents each constraint. SpringLayout:
  • 29. ScrollPane utilizes the layout manager. ScrollPaneLayout is in control of nine components: a viewport, two scrollbars, a row header, a column header, and four "corner" components. ScrollPaneLayout:
  • 31. Swing Apps There are so many uses of Java Swing. We can create application softwares using Java Swing. In addition, Java Swing is a lightweight Java GUI widget toolkit that includes a rich set of widgets. 31
  • 32. Java Swing Applications: Some Application Softwares using Java Swing are following : ● Calendar ● Calculator ● Multiplication Table ● Vowel Counter ● Student Management ● E-HealthCare Management ● Notepad ● Guessing Game 32
  • 34. Database JDBC(Java Database Connectivity) is a tool or an application programming interface that establishes a connection between a standard database and java application that intends to use that database. 34
  • 35. JDBC’s architecture : The JDBC interface consists of two layers: 1. The JDBC API supports communication between the Java application and the JDBC manager. 2. The JDBC driver supports communication between the JDBC manager and the database driver.
  • 36. Simple database connections and queries: The steps for connecting to a database with JDBC are as follows: 1. Install or locate the database you want to access. 2. Include the JDBC library. 3. Ensure the JDBC driver you need is on your classpath. 4. Use the JDBC library to obtain a connection to the database. 5. Use the connection to issue SQL commands. 6. Close the connection when you are finished.

Editor's Notes

  1. Good Afternoon, I am Shakil Anower Samrat. My goal for this presentation is to introduce the classes that represent the layout manager…...ending:Instead of specifying the precise location and size of every GUI component, programmers may use layout managers for basic layout features. This capability allows the programmer to focus on the overall look and feel while allowing the layout managers to handle the majority of the layout specifics..That ladies and gentlemen, was what I wanted to share with you. Thank you