Tag Archives: Java Video Tutorial

Java Video Tutorial 49

Make a Java Paint AppIn this part of my Java Video Tutorial, I continue to show you how to make a Java paint application. If you missed part 1 watch it.

I cover numerous topics including: how to draw lines, ellipses, brush strokes. I also cover how to save transparency values for shapes. And, because you requested it how to create a custom event listener and much more.

All of the code follows the video and it is heavily commented. After this tutorial, you’ll be able to make an app with much of the functionality of Photoshop.

Continue reading Java Video Tutorial 49

Java Video Tutorial 48

Make a Java Paint ApplicationThis tutorial is going to be a ton of fun. Today I’ll show you how to Make a Java Paint Application!

One of you guys asked me to do this and it gives me a great opportunity to review and cover new topics all at once. Somethings I cover that you may want to brush up on include using the Java Box Layout, Java ArrayList, and Java Graphics2D.

All of the code follows the video and it is heavily commented. If you have questions, feel free to ask. Everything used is here Zipped Archive

Continue reading Java Video Tutorial 48

Java Video Tutorial 47

Java 2D Graphics TutorialIn this part of my Java Video Tutorial, I cover how to draw 2D graphics in Java. This tutorial will serve as an introduction before I make a paint application with Java.

I cover drawing lines, curves, ellipses, rectangles and numerous other shapes. Then we look at strokes, fills and gradients.

All of the code follows the video and can serve as a cheat sheet, or an additional teaching tool.

Continue reading Java Video Tutorial 47

Java Video Tutorial 46

JDOM2 Video TutorialToday I introduce the easiest way to read and write to XML files using Java. It is call the JDOM2 library. With it you’ll easily read any element, or attribute and create your own.

I introduce 10 libraries and show you numerous methods that will make your life easier in just 14 minutes!

All of the code follows the video to improve the learning process.

Continue reading Java Video Tutorial 46

Java Video Tutorial 45

Java XPATH Video TutorialI received a bunch of emails asking me to make a tutorial on Java XPath. I guess you liked my previous XML XPath tutorial?

XPath can be used to easily grab data from an XML file and into your Java code. I’ll cover how to write to an XML file the easy way in my next tutorial on JDOM2.

All of the code follows the video, and it is heavily commented to help you learn.

Continue reading Java Video Tutorial 45

Java Video Tutorial 44

Parse XML JavaAfter I made my XML Video Tutorial, you asked me to show you how to parse XML with Java. So, that is what I’m doing in this tutorial.

I wasn’t sure how much to cover, because I could literally create a 5 part series on this topic. I decided to cover the basics in the video and provide another example in the code below.

If you want to see more, tell me and I’ll cover more on parsing XML with Java.

Continue reading Java Video Tutorial 44

Java Video Tutorial 43

Java Server Pages Video TutorialHere is part 1 of my Java Server Pages video tutorial. To completely understand everything you need to see my Java Servlet Video Tutorial.

Unlike Java Servlets a JSP file allows you to easily co-mingle HTML, JavaScript and Java code all in one file. You do that by placing different types of Java code in special brackets.

It sounds harder than it is and after this video you’ll be writing your own JSPs. The code follows the video to help you learn.

Continue reading Java Video Tutorial 43

Java Video Tutorial 42

Java ServletsIn this part of my Java Video Tutorial, I continue what I started in my Java Servlet Video Tutorial. If you haven’t seen it, you need to before you can try this code out.

I’ll show you how to pass form data to a Java Servlet using both the GET and POST method. I also cover the web.xml file and much more.

The code follows the video, to help you learn. Also vote on what my next tutorial should be on below.

Continue reading Java Video Tutorial 42

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 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

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