I 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
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
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 🙂
your welcome, and thanks to you to accepting my request, love your all videos, keep going…
thanks again…
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
I’ll definitely cover Java and databases. Derby is kind of fun. I’ll see what I can do
Thank you….
Thank you 🙂
You’re very welcome 🙂 Thanks for stopping by
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!
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
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?
I can’t imagine why? What line is causing the error
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);
}
}
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.
I’m sorry to hear that. Always feel free to ask questions. I’ll do my best to help if possible
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.
Thank you very much 🙂 I do the best I can
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 🙂
I teach this stuff by hand coding mainly because I like everyone to understand what is going on. You can definitely use a GUI though. Check out Window Builder. I think it is what you are looking for
Great Video’s. Any plans on making videos on SWT and RCP. Appreciate what you do.
Yes I plan on going back to Java at some point to cover the topics that I didn’t cover the first time. Yes a J2EE tutorial is in the works as well.
Code runs but no scroll bars are shown. I see a dot to the right of the textarea.
Nevermind. YOUR code works, my nesting was wrong 🙂
Great I’m glad you fixed it 🙂
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.
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.
Thanks a lot and keep doing this.
You’re very welcome 🙂
Really, REALLY nice tutorial. I am a fan for sure and I have passed it to me Java class.
Thank you very much 🙂