Java - Build a Desktop Application

Learn how to build a Desktop Application using Java and Swing with full step by step instructions and resources
3.5 (15 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,218 students enrolled
25% off
Take This Course
  • Lectures 23
  • Length 4 hours
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 8/2014 English

Course Description

What am I going to get from this course? –

  • How to implement all those standard Applications features
  • Adding a Menu bar to your application
  • Adding Help-About dialog box to your application
  • Using a Splash screen on startup to show progress
  • How to implement logging for your Application

The course is divided into 7 sections with each section taking you through an area of the application, with sections such as installing and testing your environment, building a menu and packaging up your application ready for distribution.

Delivery of course content is primarily through the use of video sessions demonstrating a specific point. At the end of each section you are able to run the code and explore the results.

At the end of the course you will be able to take the techniques covered in the course and apply these to your own development projects.

What are the requirements?

  • Some knowledge of Java
  • Eclipse Integrated Development Environment (IDE) for Java
  • Java Run Time Environment (JRE)
  • A few other freely available tools such as Log4J, and Launch4J

What am I going to get from this course?

  • Write a desktop application using the Java programming language and package up into an executable file
  • Creating and using a menu
  • Display dialog box with details about the author of the application
  • Implementing a generic method for writing an application log file
  • Package the application into an executable file for easy distribution
  • Basic image handling

Who is the target audience?

  • successfully completed a Java beginners course who want to use their new found skills to build Desktop Applications
  • Programmers of all levels new to Desktop Application development

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction
2 pages

Take a look at the finished application we will build during this tutorial.

Section 2: Tools required

The application we will build will be written in Java. Before we can start we need to install Java onto our machine. This video takes you through the steps need to install Java on your computer.


To provide visual help and handy tools in writing Java code we will use an Integrated Development Environment (IDE). Eclipse is a popular Java IDE and this video covers how locate, download and install to you computer.


As we go through developing the application we will add code which writes out progress information to a log file. To allow us to do this we will make use of a logging tool call Log4J. This video shows you where to locate the Log4J tool.


Once all the code writing is over we will package up our Java code into an executable program. To do this we will use the Launch4J tool. This video shows you where you can locate this tool.

Section 3: Basic Application Framework

Before we get to involved in writing our application, first lets check we have our environment installed and working correctly by writing a small test program.


This sessions ensures that when we use our Swing components there are run on the Event Dispatch Thread.

Add Logging
Create the main window
Adding a Window Event Handler
Section 4: Adding a Splashscreen
Creating a Splashscreen
Splashscreen progress text
Splashscreen progress bar
Using our splashscreen
Section 5: Adding the Menu
Creating a Menu
Building Menu options
Adding Menu to the Application
Section 6: Adding a Help About dialog box
Creating a Help About dialog box
Build the dialog box
Layout dialog box information
Add Help About to the application
Section 7: Packaging up the application
Package up the Application

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

John McNeil, Designing and developing applications

From my days as a teenager my personal interest has been in graphics, particularly the 3D world. However my professional life has been spent dealing with business issues and particularly the management and flow of information.

I have spent over 15 years designing and developing applications for business and for fun. I have worked with C, C++, Java, as well as a host of scripting languages and developed client/server, interactive web sites, web services and enterprise java solutions.

After years of designing solutions on various platforms I now spend my time sharing my knowledge and experience with others within the business arena so that they may develop their full potential. I prefer to use real world examples to demonstrate points where possible so much of my teaching is through doing.

Ready to start learning?
Take This Course