Category Archives: Java Video Tutorial

Java Video Tutorial 41

Eclipse ServletsIn this part of the Java Video Tutorial, I’ll show you how to make Java Servlets in Eclipse.

I’ll cover how to set up Tomcat to work with Eclipse. I’ll also show you how to fix the restricted library error, how to set up Eclipse tool tips and more.

If the video is to fast, I list everything below step-by-step. All of the code also follows the video.

Continue reading Java Video Tutorial 41

Java Video Tutorial 40

Java JAppletI have received the following requests many times over the past week. Make a Java JApplet Tutorial. Show me how to turn your Personality Test into a Java application.

So, in this tutorial I will do both! I also provide a review of many things I’ve covered, while providing a few new tricks.

All of the code follows the video and it is heavily commented. If you struggle with learning anything the code will help you through.

Continue reading Java Video Tutorial 40

Java Video Tutorial 39

Java JEditorPaneIn this part of the Java Video Tutorial, I cover the JEditorPane Swing component. It allows you to both display rich text and HTML documents.

I also cover how to listen for events in JEditorPane, when users click on links for example. These events are handled by HyperlinkEvent and HyperlinkListener.

Because some people are having trouble with Eclipse, I also show how you can get Eclipse to do some coding for you.

Continue reading Java Video Tutorial 39

Java Video Tutorial 38

Java JTables Writing to a DatabaseIn my previous JTable Video Tutorial I showed you how to pull information from a database and work with it in a JTable.

In this tutorial I show you how to add and delete rows in a JTable that will then effect the database. I also cover allowing the user to change the database on a cell basis.

After this tutorial, you’ll be able to do anything with Java JTables.

Continue reading Java Video Tutorial 38

Java Video Tutorial 37

Java JTables MysqlIn this part of my Java Video Tutorial, I continue showing how to use JTables with MySQL. You’ll learn how to pull information from a database, add a row, delete a row, convert a String into a SQL Date and much more.

If you haven’t seen my Java Swing Tutorial watch it first. Part 1 of my Java JTable Tutorial should also be seen first.

I explain how to load the database below. I also have all of the code.

Continue reading Java Video Tutorial 37

Java Video Tutorial 36

Java JTable TutorialI’ve been asked to make a Java JTable tutorial by many people. Today I’ll show you how to display database query results from my Sabermetrics Tutorial into a Java JTable.

I then cover most everything about Java JTables. How to display data into a JTable. How to change fonts in a JTable. How to change row height in a JTable. How to sort a JTable. How to align a JTable column and much more.

All of the code follows the tutorial and it has even more tricks.

Continue reading Java Video Tutorial 36

Baseball Sabermetrics

baseball sabermetricsPreviously I made a couple of Baseball Sabermetrics videos and it was a lot of fun. In this Sabermetrics tutorial I’ll cover a few of the Sabermetrics formulas I missed.

One question I received from a few of you was which team uses Sabermetrics most effectively. You’ll find that answer in the first query below named TTRC for Teams.

I also show how to perform many Sabermetric Pitching formulas below.

Continue reading Baseball Sabermetrics

Sabermetrics 3

Sabermetrics BaseballI continue covering some neat Sabermetrics formulas in this video. If you missed part 1 of my Sabermetrics Tutorial, check it out first.

I’m going to cover a few new complicated formulas including: Theoretical Team Runs Created, Batting Average on Balls in Play, Weighted On Base Average and more. I’m also going to show you how to easily save queries using views.

This tutorial has been a great deal of fun. All formulas follow the video.

Continue reading Sabermetrics 3

Java Video Tutorial 35

Common Java ErrorsOne of you guys asked me to do a tutorial on Fixing Java Errors. I thought it was a good idea, so here I’ll show you over 30 common Java errors.

Sometimes it is hard to figure out what Cannot be Resolved, Syntax Error on Token, or Method is not Visible mean. But, after watching this video you should better understand.

Also, you’ll learn how to get Eclipse to help you fix Java errors.

Continue reading Java Video Tutorial 35

Java Video Tutorial 34

Java JDBC EclipseIn this part of the Java Video Tutorial I show you how to setup Java JDBC in Eclipse.

I then cover how to connect to a MySQL database, query it and get the results of a query. We also look at the Exceptions you’ll need and much more.

I will cover SQL in this tutorial, but not to the extent that I did in the past. My SQL tutorials can be found after the video.

Continue reading Java Video Tutorial 34

Java Video Tutorial 33

Java Binary StreamsHere I continue covering everything about Java. Today I completely cover reading and writing Java Binary Streams.

I cover everything you need to know including DataOutputStream, FileOutputStream, BufferedOutputStream, all of the reading and writing primitive type methods and more.

All of the code follows the video. It is heavily commented.

Continue reading Java Video Tutorial 33

Java Video Tutorial 32

Java Character StreamsIn this part of my Java Video Tutorial, I completely cover how to both write to and read character streams from files.

I explain all of the following: PrintWriter, BufferedWriter, FileWriter, BufferedReader, FileReader, common file exceptions and much more.

All of the code follows the video. It is heavily commented and will help you build your Java code repository while helping you to learn Java better.

Continue reading Java Video Tutorial 32

Java Video Tutorial 31

Java File ClassIn this part of the Java Video Tutorial, I completely cover the Java File Class.

I’ll show you how to create and delete files and directories. How to pull lists of files from directories and manipulate them. We’ll look at the errors to watch out for and a whole bunch more.

All of the code follows the video and should be used to help you understand this topic better.

Continue reading Java Video Tutorial 31

Java Video Tutorial 30

Java Swing TutorialYou asked for a giant tutorial that covers every Swing component, and in this tutorial I deliver. This is a big Java Swing Tutorial!

Here I create a complicated Java Swing layout. I set up everything in a GridBagLayout, but add a Box and  FlowLayout to it. I then show you how to use all of these components: JLabel, JTextField, JComboBox, JSpinner, JSlider, JRadioButton, ButtonGroup, JCheckBox, JTextArea, JScrollPane, ChangeListener, pack and more.

All of the code follows the video.

Continue reading Java Video Tutorial 30

Java Video Tutorial 29

Java GridBagLayoutIn this part of the Java Video Tutorial series, I cover GridLayout, GridBagLayout, GridBagConstraints, Font, Insets and much more.

I do this by showing you how to create a calculator layout with Java Swing. You’ll see just how easy it is to layout a nice GUI interface using constraints. You don’t necessarily need to measure X and Y coordinates to get everything to look right.

The code follows the video and it is heavily commented.

Continue reading Java Video Tutorial 29

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