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.

If you like videos like this share it [nttfblike]

Code From the Video

25 thoughts on “Java Video Tutorial 30”

  1. i am learning css from your tutorial, soon i will start java from here , but sometime i play ur latest video from youtube 🙂 cos i love it. take care

  2. Can we not just use Netbeans – ie, drag and drop those swing components? Are they any different? I know little about java and wondering if using that is going to be qualified as bad/problematic code?

    Also, any comments on JavaFx 2.x – is that going to take over Swing?

    Would appreciate your insight.

    1. I’m going to cover NetBeans in a future tutorial. As per JavaFX, it looks very interesting and I also will cover parts of it in upcoming tutorials. It is definitely worth learning

  3. I’m a programmer for 20 years and really enjoying your videos… you’ve a really good knack for explaining things .. keep it up ..

  4. Hi Derek. Thank you very much for your knowledge of java. For the comment from above i like to say that you were right, once you start coding the gui for a while it kinda grows on you :D. I have a suggestion or a favor to ask, and that is:can you make a tutorial or point me to some resources about creating rtf or pdf documents dynamically, specifically for printing. i have to make program that prints out invoices. i created a program that prints out the gui. but in java you cant put a background on a gui, so that idea is flushed.
    Thanks in advance
    All the Best

  5. Derek! I’m getting there! Kids have had me take a break but I come right back! I really want to get certified in this by November!

      1. I am getting super excited about this too(I’m both Dave and the name above).

        I’ve decided to design a baseball season tracker. I tried it before in Excel Using VBA, but I hit a snag when I wanted to chart the location of pitches. I realize now that I can draw the locations onto a panel within a panel within the main panel! Although I have an issue:

        how can I have the mouse listener draw a small circle where you double click it?

        1. That sounds very cool! I actually show you how to make a paint app and how to store vector drawings or marks like you said starting in part 47 of my Java tutorial. I think what is taught in the next couple videos after that will be what you need.

          I hope that helps 🙂 – Derek

          1. I am getting giddy just thinking about it! VBA was very frustrating, it was great for numbers and such, but I couldn’t do what I’m doing now with Java. All thanks to you good sir!

    1. I have been planning enterprise videos for a while. I have just been caught up making android tutorials and I want to cover them completely first. Sorry it is taking so long.

Leave a Reply

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