Complete course: In this tutorial I show you how to build up a basic “Hello World” Swing …



  1. I tried to download the source code by clicking the link above. There is a special offer from udemy, I enrolled, but there is still no source code. I am in a hurry to get a job done. Please tell me how to get the source code.

  2. @John

     I have never seen the
    SwingUtilities.invokeLater(newRunnable(){ public void run()}}

    How important is it to add this to our code? is it still valid in JDK8?

    I did watch someone else video and found a cleaner version of adding a frame before I watched your video.

    Can I continue to use the below code or should I use yours for best practice as this video was uploaded in 2011.

    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;

    public class JTFrame extends JFrame {

    JPanel jp = new JPanel();
    JLabel jl = new JLabel();
    JTextField jt = new JTextField(30);
    JButton jb = new JButton("Press");

    public JTFrame() {



    public static void main(String[] args) {
    // TODO Auto-generated method stub

    JTFrame t = new JTFrame();


  3. Hey man, this is my first time ever dwelling into something like this and so I'm sorry if this is a real basic question, but it's really messing me up. I follow everything you do but when I try running the app (At the point where the frame is real small, so like 1:49) I always get the error

    "Error exists in required project(s)


    Proceed with launch?"

    Then I hit proceed and it gives me this in the console:

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Jframe cannot be resolved to a type
    Constructor call must be the first statement in a constructor
    Syntax error on token ".", super expected after this token

    at App.main(

    Any idea? I've been stuck for a good 40 mins now haha, thanks man.

  4. I really want to thank you soooooo bad!
    I learned Java because of you! Now my classmates are even amazed on me on what I know!
    Recently, we have a game project to do with GUI and Im looking forward on your series about this!

  5. I like to casually watch programming videos right before sleeping, it's what I like to do before bed.. just stick some information into my head which I like. Your videos, for obvious reasons as mentioned by others, is perfect for this! Very soothing voice helps me relax while I learn and eventually fall asleep. (not that they're boring or anything, just stimulating).


Please enter your comment!
Please enter your name here