You 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
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
Thank you very much 🙂 I’m glad you like them. Thanks for taking the time to say Hi
Helps me allot..
thank you…
I’m glad you liked it. Everyone seems to like it when I make long tutorials. I’ll try to make more of them
yes please, make a huge series of java tutorial..
you are just awesome, darek..
Thanks. Many more tutorials on Java are in the works
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.
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
dude you are champ
dude you are champ
Thank you very much 🙂 I do my best
Wait a sec, you are telling me that NetBeans gives a gui creator like Visual Studio gives for C#?
Yes and I’ll cover it soon. I just wanted to provide all of the code to make everything from scratch
I’m a programmer for 20 years and really enjoying your videos… you’ve a really good knack for explaining things .. keep it up ..
Thank you very much 🙂 I really love making the videos and I’m happy that people are finally watching them
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
Check this out for exporting to pdf
I hope it helps and thank you for the kind words 🙂
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!
Keep at it. I think I did a better job of explaining OOP in the first 2 videos in my Design Patterns Video Tutorial. Always feel free to ask questions.
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?
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
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!
Thank you very much 🙂 I’m very happy that you are enjoying the videos. Java is really fun I agree!
Derek would you be making any videos on Servlet & JSP.
anytime?
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.