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

What is New Think Tank

Think Tank LogoI get asked the question, what is your website about, all of the time. Today I’ll try to make sense of it.

I started this website to provide a free education on topics that aren’t necessarily covered else where. At times it looks like all I cover is programming, but that definitely isn’t true.

Below I’ll try to show you all of what I cover here. You can see everything here.

Continue reading What is New Think Tank

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