Learning Java Swing
1h 34mBeginner2025-03-11
Authors

Peggy Fisher
Programmer, Content Manager at LinkedIn Learning
Course details
Discover how to use Swing—a graphical user interface (GUI) builder for Java applications—to create a GUI in Java. In this course, Peggy Fisher helps to familiarize you with the basics of Swing, and shares what you need to know to create a GUI in Java. She discusses fundamental concepts, such as MVC architecture and using a WYSIWYG editor. In addition, she covers containers, Swing components, layouts, and handling events—which occur when a user interacts with the interface.
Learning objectives
Create a GUI (graphical user Interface) front end for your Java application.
Understand how to use the WYSIWYG editor for creating your Swing components and how to create the components without using that editor.
Gain an understanding of an MVC architecture, which is a model-view-component approach to creating a GUI application in Java.
Add static and interactive components to your application. Add code to listen for actions taken and then process these actions accordingly.
Learning objectives
Create a GUI (graphical user Interface) front end for your Java application.
Understand how to use the WYSIWYG editor for creating your Swing components and how to create the components without using that editor.
Gain an understanding of an MVC architecture, which is a model-view-component approach to creating a GUI application in Java.
Add static and interactive components to your application. Add code to listen for actions taken and then process these actions accordingly.
Skills covered
APIsJavaOracleLearningProgramming LanguagesSoftware Development
Concepts
0. Introduction
- 01 - The power of Java Swing
- 02 - What you should know
- 03 - Tour of CoderPad
1. Swing Basics
- 04 - Learn about Swing
- 05 - Use a WYSIWYG editor
- 06 - Use the WYSIWYG editor to create a Hello World project
- 07 - Swing from scratch
- 08 - MVC architecture
- 09 - Solution - Add additional UI fields to the movie app
2. Containers
- 10 - Top-level containers
- 11 - Frames and panels
3. Components and Layouts
- 12 - Swing components
- 13 - Commonly used layouts
- 14 - Advanced layouts
4. Events
- 15 - List model controls
- 16 - What is a Swing event
- 17 - Event listeners
- 18 - MVC example
- 19 - Solution - Create a GUI grocery list
Conclusion
- 20 - Showing the code from the WYSIWYG
- 21 - Next steps in your Java journey
Related courses
Related learn paths
- Become a Java EE 7 Developer
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Explore a Career in Data Engineering
- Advance your Node.js Skills
- Prepare for the Google Associate Android Developer Certification
- Explore a Career as a JavaScript Developer
- Prepare for the CompTIA PenTest+ (PT0-001) Exam
- Become an Android Mobile App Developer