Tag Archives: Java Video Tutorial

Java Video Tutorial 28

Swing Layout ManagersIn this part of my Java Video Tutorial, I cover 3 different Swing layout managers. I revisit the the layout manager we have been using by default being Flow Layout. As well I introduce the Border and Box layout managers.

I answer many common questions like how do you get to components in a Border frame quadrant? How do I add space between components and much more.

The code follows the video and will help you better learn.

Continue reading Java Video Tutorial 28

Java Video Tutorial 27

JTree JavaIn this part of the Java Video Tutorial, I introduce the last Swing component called the JTree. I won’t just be introducing the JTree however. I will also be reviewing much of what you have learned.

It is my belief that if you see tools being used in many different ways, that you will just remember them. I will review dimensions, frames, panels, buttons, scroll bars, listeners and so much more.

Use the code after the video to better learn how to use Java Swing.
Continue reading Java Video Tutorial 27

Java Video Tutorial 26

Java JSpinnerIn this part of the Java Video Tutorial, I focus on the Java Swing JSpinner component. I’ll show you how to cycle through numbers, dates and just about anything else. I also revisit the Dimension, Date and Calendar libraries.

Most Java Tutorials gloss over topics like this, but I decided I wanted to create a truly comprehensive tutorial.

Just like always it is best to follow the tutorial with the code. It follows the video.

Continue reading Java Video Tutorial 26

Java Video Tutorial 25

Java Swing JListHere I continue making the most comprehensive Java Video Tutorial ever. Today I’ll cover how to create list boxes using Java Swing.

More specifically I’ll cover JLists, DefaultListModel, using JScrollpane with JList and a whole bunch more.

Like always, the heavily commented code follows the video. Leave any questions below.

Continue reading Java Video Tutorial 25

Java Video Tutorial 24

Java Video Tutorial 24In this video tutorial, I show you how to create combo boxes in Java Swing. This tutorial is also a review of everything I’ve previously gone over.

I review how to create the frame and panel. How to add buttons with event listeners. I also review JOptionPane. I’m slowing down a bit so that I’m sure you understand everything that proceeded this tutorial.

All of the code follows the video below. Leave any questions below.

Continue reading Java Video Tutorial 24

Java Video Tutorial 23

Java Swing TutorialToday I complete the Java Swing tutorial I started in part 22 of the Java tutorial.

I implement the Swing event listeners. I then cover how to format numbers in Java so that they have commas or are displayed as currency. JOptionPane, a useful popup window in Java is introduced. And, finally I review much of what we have done in past Java Swing Tutorials.

All of the code follows the video. You should look at it to help you learn.

Continue reading Java Video Tutorial 23

Java Video Tutorial 22

Java Swing TutorialIn this part of the Java Video Tutorial, I continue building your knowledge on how to use Java Swing. I actually broke this tutorial into 2 pieces. It will continue in part 23 of this series.

I cover a new GUI listener called the ChangeListener. I also introduce check boxes, radio buttons, groups, borders and sliders.

The code for both tutorials follows the video below.

Continue reading Java Video Tutorial 22

Java Video Tutorial 21

Java Swing Event HandlingIn this part of my Java Video Tutorial, I will cover GUI Event Handling. If you missed my Java Swing video tutorial, watch that first.

Here I show you how to implement the ActionListener, KeyListener, MouseListener and WindowListener. I also show you some easy ways to use interfaces so that you don’t have to memorize all of the required methods for each interface.

All of the code follows the video. Definitely look at it so that you will find it easier to learn.

Continue reading Java Video Tutorial 21

Java Video Tutorial 20

Java SwingI introduce you to Graphical User Interfaces (GUI) in this part of my Java Video Tutorial. I focus specifically on Java Swing and its components.

We figure out how to display frames, panels, labels, buttons, text areas and more. I also go over the Dimension object and the Java Toolkit, which allows you to ask questions of the operating system.

All of the code follows the video and it’s set up to help you retain this information.
Continue reading Java Video Tutorial 20

Java Video Tutorial 19

Java Regular ExpressionsIn this part of my Java Video Tutorial, I cover Java Regular Expressions. You use regular expressions when you want to search for data. You then use codes to define what that data looks like.

So, if you are looking for a 5 digit number, you could type \\d{5} and Java does the rest!

The code that follows the video will help you see how easy regular expressions are.

Continue reading Java Video Tutorial 19

Java Video Tutorial 18

Java ThreadsIn this Java Video Tutorial, I continue to teach you about Java Threads. If you missed the last part, watch it first here last Java Tutorial.

Today I cover how to lock down methods, synchronized, thread pools, scheduleAtFixedRate and numerous other Java Thread methods.

Use the code that follows the video to make it easier to follow this tutorial. It is heavily commented and will help you.

Continue reading Java Video Tutorial 18

Java Video Tutorial 17

Java ThreadsIn this Java Video Tutorial I cover how to use Java threads.

A thread is just a block of code that is expected to execute while other blocks of code execute. That’s it. When you want to execute more than one block of code at a time you have to alert Java.

In this video I show you how to alert the interpreter. Part 1 of this series is here Java Video Tutorial. Heavily commented code follows the video.

Continue reading Java Video Tutorial 17

Java Video Tutorial 16

Java Video Tutorial 16In this part of my Java Video Tutorial, I continue to provide you with a complete understanding of Java.

Today I’m covering the Object and Class class, along with clone. We will explore all of the methods that every object gets by default.

Use the code that follows the video to help you learn. If you missed the previous parts make sure you check them out here Java Video Tutorial.

Continue reading Java Video Tutorial 16

Java Video Tutorial 15

Java Video Tutorial 15In this part of the Java Video Tutorial I cover interfaces, abstract classes, abstract methods and more.

You need interfaces and abstract classes because Java doesn’t allow you to inherit from more than one other class. You would use an interface when you want to force the user of the interface to create every method in the interface.

You use an abstract method when you need some flexibility. You’ll learn more in the video below.

Continue reading Java Video Tutorial 15

Java Video Tutorial 14

Java Video Tutorial 14In this Java video tutorial I cover Polymorphism, Inheritance, Protected, Final, Instanceof and a bunch more.

These topics are not complicated, but for some reason they are normally presented in complicated ways.

Use the code that follows the video to help you gain a complete understanding of these topics. If anything isn’t 100% clear leave a comment below and I’ll help.

Continue reading Java Video Tutorial 14

Java Video Tutorial 13

Java Video Tutorial 13In this part of the Java Video Tutorial I cover most every method available for manipulating Strings and StringBuilders.

This is one of the last simple Java Tutorial videos. Everything after this will cover advanced topics.

All of the code follows the video. It is very heavily commented. If you print it out it will help you better retain this information.

Continue reading Java Video Tutorial 13

Java Video Tutorial 12

Java Video Tutorial 12In this part of the Java Video Tutorial I cover Java Linked Lists.

The LinkedList class is a collection based on a linked list instead of an array like the ArrayList. They are good when you plan to add and delete items. They aren’t particularly efficient at providing access based off of index searches though.

Nearly every Java Linked List method is shown below. Make sure you look for the code that follows the video, so you completely understand Linked Lists.

Continue reading Java Video Tutorial 12

Java Video Tutorial 11

Java Video Tutorial 11In this part of my Java Video Tutorial I introduce Java collection classes. Specifically I cover how to use Java ArrayLists.

Java ArrayLists make it easy to keep track of groups of objects. A Java ArrayList differs from a java array in that it automatically resizes itself when you add or remove values.

I’ll go over nearly every Java ArrayList method in the video below. The code follows the video and it is heavily commented to help you learn easily.

Continue reading Java Video Tutorial 11

Java Video Tutorial 10

Java Video Tutorial 10In this tutorial I do something kind of crazy. I try to teach programming logic by writing code right out of my head. You probably won’t understand everything in this video, but that’s OK.

I continue making a simple game in Java. I specifically make a method that allows my monsters to move on the game board without landing on each other and blocks them from falling off the board.

If you missed part 1 definitely check out Java Video Tutorial pt 1.

Continue reading Java Video Tutorial 10

Java Video Tutorial 9

Java Video Tutorial 9After my last video I received a bunch of messages asking me to cover Java Arrays. So in this video I go over everything you’d ever want to know about Java Arrays.

I show you how to create arrays, numerous ways to populate them, tricks involving multidimensional arrays, the enhanced for loop, Array library methods and more.

If you missed part 1 of this series check it out first here Java Video Tutorial.

Like always heavily commented code follows the video.

Continue reading Java Video Tutorial 9