Buying for a Team? Gift This Course
Wishlisted Wishlist

Please confirm that you want to add Java Swing Essentials - GUI programming in Java made easy to your Wishlist.

Add to Wishlist

Java Swing Essentials - GUI programming in Java made easy

Learn to create Graphical User Interface in Java in a easy & comprehensive way. Go GUI because console is too mainstream
3.4 (12 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,401 students enrolled
Last updated 2/2015
English
$10 $20 50% off
2 days left at this price!
30-Day Money-Back Guarantee
Includes:
  • 3 hours on-demand video
  • 2 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?
What Will I Learn?
Create rich Graphical User Interfaces in Java
Effectively use various Swing GUI Components
Make your own multi-platform Desktop Applications
Convert Console-based java programs to GUI based Application
View Curriculum
Requirements
  • You should be familiar with the basics of Java Programming Language. (Tip: If you know about creating Classes and Functions in Java, You got the basics...)
  • Its good, if you are familiar with Eclipse IDE because it will make your task of java programming very easy.
Description

Java is one of the modern programming languages available today. Its write once, run everywhere approach makes it a top choice for developers. Coding in Java is easy and hassle free. You may be already creating small programs in it. Why just be limited to console-based programming when you can actually learn to create multi-platform GUI(Graphical User Interface) based software.

This course is for Swing. Swing provides the default tools in Java to create rich Graphical User Interfaces. Mastering Swing will ensure that you can handle real world projects that involve complex GUI. This guide will go through each and every aspect of Swing one by one.

This Course consist of Quizzes and Assignments.

Quizzes will ensure you are learning the concepts properly. Assignments will ensure you are actually applying the concepts properly. Solutions are included in the form of tutorial lectures at the end of the course.

Bonus: New content will be made available to you time to time to keep this course fresh and latest at no extra cost.

Who is the target audience?
  • This course is meant for people who know little bit of Java and further wants to explore and leverage the power of this Programming Language in creating standalone GUI based software applications.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 40 Lectures Collapse All 40 Lectures 02:46:31
+
Getting Started with Swing
3 Lectures 13:17

You will learn, what is JFC. The features of JFC and a brief overview of Swing Packages

Preview 03:05

This video shows how a simple java program using Swing looks like and the Output of the program when you compile it.

Preview 00:43

Create your first swing application.
Learn to use the two basic swing components:

  1. JFrame (used to create application window)
  2. JLabel (used to display information inside the window)

Also learn how to call the GUI code from the main method of your Java code using SwingUtilities class

Quick Start: Create your First Swing Program
09:29

Just a revision of what you studied so far in this section.

Revision
6 questions
+
Using Swing Components
5 Lectures 24:18

You will learn about Swing Containers and Components and how they are used in the program.

Preview 03:49

In this lesson, you will learn to create an application's main window using the JFrame class of javax.swing .

Creating Application Windows(Frame) using JFrame (a top-level Swing Container)
05:43

In this lecture, you will learn to give a Title to your application window that will be displayed at the top and you will also learn how to set a minimum size so that the application window could only be resized to some specific dimension.

Giving Title to your Window and Handling Minimum Size while Resizing it
04:00

You will learn to set a default close operation to your Application Window. The default behaviour of the close button of the application window is to hide the window instead of terminating the application. After this lecture you will be able to override this default behaviour and make the application terminate when someone clicks on the close button of the application.

Terminating Applications using Default Close Operation of the Window
04:07

After you create a Window, its just blank... In this lecture, you will learn how to add three basic components(Label, Button and Text Field) to the Window and how to organise them using a layout(Flow Layout).

Adding Components to your Application Window & arranging them using Flow Layout
06:39

Revision
2 questions
+
Buttons, Checkboxes, Radio Buttons & Toggle Buttons
10 Lectures 34:32

In this lecture, you will learn How to create a button using the JButton class of java.swing.*
You will also, learn how to show a default text on the button and finally, How to display it in the application window.

Creating a Button and Displaying it on the Application Window
04:20

In this lecture, you will learn how to create Checkboxes, showing text on them and displaying them in your application window.

Creating CheckBoxes and Displaying them on Application Window
01:57

In this lecture, you will learn to create radio buttons, displaying default text in them and finally adding it to the application window. You will also learn, how to use Button Group so that you can group the radio buttons which will make only one radio button selectable in the group at one point of time.

Creating a Radio Button and Grouping multiple Radio Buttons
06:13

You will learn to create a Toggle Button. A Toggle button is similar to ON/OFF button. When you click on it, it hold its pressed state and when you click on it again, it comes back to its original state.

Creating a Toggle Button and Displaying it on the Application Window
02:35

You will learn how to add an action listener to a button. It will allow a button to perform some task when someone clicks on it.

Adding Action Listener to a Button to handle user click actions
04:02

In this lecture you will learn to add an action listener to a checkbox. When the checkbox is checked, it will perform something and when the checkbox is not checked, it will perform something else, according to your requirement.

Adding Action Listener to a CheckBox to perform action when selected
05:57

You will Learn to add action listeners to a group of Radio Buttons and control their functionality according to their selection.

Adding Action Listener to Radio Buttons to handle their action on selection
05:03

You will learn how to add an action listener to a toggle button to check when the toggle button is in pressed state or in unpressed state and perform some action accordingly.

Preview 03:17

Assignment 1: Create a Java Swing Quiz Application. This video shows what you are expected to create and how your application is supposed to perform.

Preview 01:08

Assignment 1: Create a Java Swing Quiz Application. This document contains the problem statement and program requirement. Download or Print the document for your reference when to solve the problem.

Preview 1 page
+
ComboBox(DropDown): Give users a choice to select values from a List
4 Lectures 13:37

In this lecture, you will learn how to create an Un-editable ComboBox, i.e., a Dropdown that will hold a list of items and you can select one of them.

Creating Un-editable ComboBox(Dropdown) and adding it to your Application Window
05:13

In this lecture, you will learn how to create an editable ComboBox that let the user to choose from a dropdown list as well as allow them to write free text in the field. This lecture is an extension of the previous lecture and only shows you how to convert the uneducable ComboBox into an Editable one.

Preview 02:03

In this lecture you will learn how to add an action listener to a ComboBox and getting the name of the selected item from it.

Adding Action Listener to a Combobox and Getting the text of the Selected Item
03:24

In this lecture you will learn, how to get the index of the selected item in the ComboBox. The index is usually used to get the position of the selected item in the ComboBox. Based on the index, you can program your application to do specific task, which is more practical in most situation that consist of dealing with hundreds of list items.

Getting the Index of selected item in the ComboBox
02:57

Revision
1 question
+
Text Controls in Swing
6 Lectures 29:59

In this lecture, you will learn how to create a Text Field in Swing. You will also learn how to use various constructors of the JTextField Class to create variety of Text Fields.

Creating a Text Field and Adding it to the Application Window
05:34

In this lecture, you will lean how to fetch the text from a text field and display it on a Label when someone clicks on a Button. You will also learn, How to set the Text Field Uneditable so that users can't type text in it.

Fetching text from a TextField & Setting TextField Editable/Uneditable
05:07

In this lecture, you will learn How to create a Password Field to accept passwords from your user. A Password Field hides the actual characters from being displayed. You will also learn how to set an Echo Character, which will allow you to set a custom character( default is Asterisk character) to hide the actual password.

Creating a Password Field & Setting Echo Character to hide the actual characters
03:15

In this lecture, you will learn how to convert your Password Field into a Text Field. This is useful when you want to give your user a choice to display their typed password. So, we will add a checkbox called "Show Password" that will display the actual password when checked and will hide the characters when unchecked.

Preview 03:39

In this lecture, you will learn how to create a formatted text field and how to specify a format mask to it so as to limit the user to a specific format. It is helpful when you are trying to create a Serial Number field in your application.

Creating Formatted Text Field and specifying a Format Mask
08:37

In this lecture, you will learn how to create a JTextArea that will allow you to read multiple lines of text from the user. Its one step ahead of the JTextField you learned already.

Creating Text Area to accept multiple lines of text from the user
03:47
+
Spinner
3 Lectures 12:41

In this lecture, you will learn how to create a spinner and use its number model. The number model will allow you to specify a current value to set to the spinner as well as minimum and maximum values. You can also specify the steps by which the values should increase or decrease in the number model.

Creating a Spinner and using its 'Number Model' to display a list of Numbers
04:48

In this lecture, you will learn how to use the Spinner List Model and display the strings in a string array as items in the Spinner.

Preview 02:38

In this lecture, you will learn to use the Date Model of the Spinner. It will allow you to create a Spinner with some default Date. The user can select in-between minimum and maximum dates. You can also specify steps at which your date should increase or decrease.

Using the 'Date Model' of the Spinner to display dates
05:15
+
Slider
5 Lectures 18:01

In this lecture, you will learn how to create a slider which is a visual component that lets you choose a value in-between two integers by sliding a knob across the track. You will learn how to make it visually appealing by showing two type of tick marks, minor and major. Setting a Label at Major position gives the user a feedback at which value the slider is residing.

Creating a Slider and Showing Ticks & Labels
06:11

In this lecture, you will learn how to create a Label Table for Slider to display alternate text to it instead of the default number values it shows. This lecture requires the knowledge of creating Hash Tables in Java but I have briefly covered the basics which will be more than enough for this tutorial.

Creating Label Tables for Slider to display alternate text instead of numbers
04:43

In this lecture, you will learn how to get the value from a slider and use that value in your application. In my example, I will get the value from the slider and based on whether the value is greater than or less than 5, it will set some text on a Label.

Getting the value from Slider and Using it in your application
03:51

In this lecture, you will learn how to set a value to the slider to position its knob programatically based on condition.

Setting the value of a slider to position its Knob programatically
01:29

In this lecture, you will learn how to create a Slider with vertical orientation.

Creating Vertical Sliders
01:47
+
Assignment 1 (Solution) : Creating a Quiz Application
4 Lectures 18:06

Assignment 1: Create a Java Swing Quiz Application. This document contains the problem statement and program requirement.

Preview 1 page

In this tutorial, I will show you how to Start the QuizApp Project in Eclipse and we will create the Application Window, give a title as well as give it a proper size.

Starting the Quiz Application Project and creating the Application Window
04:53

In this tutorial, I will show you how to add the questions, options, submit button and the result label to our application window. This will complete the GUI for the QuizApp.

Adding Questions, Options, Submit Button and Result Label to the Application
08:37

In this tutorial, I will show you how to add the action listener to the submit button in our Quiz Application to calculate the score and display the score in the Result Label.

Calculating the Score in the Quiz Application on clicking on Submit Button
04:36
About the Instructor
3.4 Average rating
12 Reviews
1,401 Students
1 Course
Web/App Developer & Founder of Xibeat Technologies

Prasun started programming at the age of 11. He holds a Bachelors degree in Computer Science and currently working as a Web/Application Developer in a MNC. He is also the founder and CEO of his startup, Xibeat Technologies that published their first app for android completely free of cost.

Prasun is very passionate about programming languages and UX design. He is comfortable with major programming language that include but not limited to C, C++, C#, Java, Python, PHP, HTML5, CSS3. He keep learning new technologies time to time. Currently he is working on his paper on a security algorithm that may get a patent in near future.

Being a self-learned person, Prasun got an extra edge over other people which allowed him to explore easy and effective way to solve a problem/challenge that is perceived tough by most of the people.

Prasun is not just limited to only programming languages and algorithms. He has keen interest in Sketching, Singing and Playing Guitar.

Finally, Prasun has decided to share his expertise with people around the world through his lineup of online courses across various domains. Hope you will enjoy learning with him!

Report Abuse