SlideShare uma empresa Scribd logo
1 de 38
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
🥴
🥴

Mais conteúdo relacionado

Semelhante a Java Swing Presentation-Shakil Anower Samrat

Graphical User Interface in JAVA
Graphical User Interface in JAVAGraphical User Interface in JAVA
Graphical User Interface in JAVAsuraj pandey
 
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-manualChitrarasan Kathiravan
 
Windows Programming with Swing
Windows Programming with SwingWindows Programming with Swing
Windows Programming with Swingbackdoor
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introductionRamlal Pawar
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven DesignKnoldus Inc.
 
Blog Management System
Blog Management SystemBlog Management System
Blog Management SystemStudentRocks
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptxshoaibkhan716300
 
01slide (1)ffgfefge
01slide (1)ffgfefge01slide (1)ffgfefge
01slide (1)ffgfefgebsnl007
 
Autograder presentation
Autograder presentationAutograder presentation
Autograder presentationChi 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 PatternsLeapfrog Technology Inc.
 
JCPParticipationOverviewJCertif
JCPParticipationOverviewJCertifJCPParticipationOverviewJCertif
JCPParticipationOverviewJCertifHeather VanCura
 
java swing programming
java swing programming java swing programming
java swing programming Ankit Desai
 

Semelhante a Java Swing Presentation-Shakil Anower Samrat (20)

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
 
JCPParticipationOverviewJCertif
JCPParticipationOverviewJCertifJCPParticipationOverviewJCertif
JCPParticipationOverviewJCertif
 
java swing programming
java swing programming java swing programming
java swing programming
 

Último

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...Akihiro Suda
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfInnovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfYashikaSharma391629
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 

Último (20)

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfInnovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 

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.

Notas do Editor

  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