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.

If you like videos like this share it [nttfblike]

Code From the Video

30 thoughts on “Java Video Tutorial 20”

  1. nice tutorial as you always give..;-)
    but i have a request to you, i want to know how to create jar files as well as installers for any type of application, please if possible provide some tutorial for that, i never found any video for this.

    Thank You

    1. Hi, I’ll definitely do that. Because Java is such a powerful language I hope to create numerous tutorials on all the things it can be used to do. Keep sending me requests and I’ll keep going until I cover most everything. Thank you for taking the time to say Hi 🙂

      1. your welcome, and thanks to you to accepting my request, love your all videos, keep going…
        thanks again…

  2. one more request i have, if possible, make some tutorial for databases (in java swing) also, using derby/javadb, and if possible explain with some projects with installation files as well, ie(how to create installation file/.exe, as in my previous request)..

    Thank you

  3. Thanks for this GREAT Java video. This is the first tutorial of yours I’ve viewed but I LOVE it! Thank you so much. I’m sure I will be viewing many more of your videos in the future. I especially love the transcript information with the code below. You helped me tremendously!

    1. Thank you very much 🙂 I’m glad you were able to find me. I don’t have that many fans because I make long videos. Always feel free to ask questions and make requests

  4. Hi Derek, great one!

    Could you possible tell me Y is this not the same in NetBeans(it throws me 267 error when try to run it)?
    I tried the code and even the first few lines and no luck, but in Eclipse it works?

      1. Hi (:

        Well, basically, after typing the first part, following your video, when you run the script I tried running mine and no luck there!
        ——————————
        /*
        * To change this template, choose Tools | Templates
        * and open the template in the editor.
        */
        package igra;

        import java.awt.Dimension;
        import java.awt.Toolkit;
        import javax.swing.*;

        /**
        *
        * @author user2
        */
        public class Igra extends JFrame{

        private static final long serialVersionUID = 1L;

        public static void main(String[] args) {

        new Igra();
        }

        public Igra(){

        this.setSize(500,500);
        this.setVisible(true);
        }

        }

  5. Hi (:

    My machine is old and partition that I was saving my projects on, on HDD, somehow is messed up and it only works when I save projects to system partition.. not sure y! But still, SORRY for bothering with this.

  6. Thanks for these.. That’s all really 🙂 I start uni in September and you have held my hand through JQuery, PHP and now Java… Some of the best instruction on the net.

  7. Hello..i am a bit new to programming but i have experience in c#.net in visual studio..but i have never created gui by hand coding..so this seems like much pain for me..i am hoping for an advice from you..what is better to start with because its hard to get rid of bad habits once you start them..should i use a tool or plugin to build gui or should i create them programmatically? thanks in advance 🙂

  8. Nice tutorials. I understood a lot about java from you. Thank you for everything. I have been studying at school C++ for 2 years and I think this helps me to understand Java better. Thank you again, you’re awesome. I have a question: how did you learn all this classes? It seems impossible to me. I guess by practicing and coding.

    1. I’m very happy that I could help. I have been doing this for decades. I have never been big on memorization because I think that takes the fun out of coding, which I think is most important. Just keep at it and eventually you’ll remember everything naturally.

Leave a Reply

Your email address will not be published. Required fields are marked *