SlideShare a Scribd company logo
1 of 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
🥴
🥴

More Related Content

Similar to 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
 

Similar to 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
 

Recently uploaded

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 

Recently uploaded (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 

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