Java Video Tutorial 21

preview_player
Показать описание


In this part of my Java Video Tutorial, I will cover GUI Event Handling. If you missed my Java Swing video tutorial, watch that first.

Here I show you how to implement the ActionListener, KeyListener, MouseListener and WindowListener. I also show you some easy ways to use interfaces so that you don't have to memorize all of the required methods for each interface.
Рекомендации по теме
Комментарии
Автор

You're very welcome :) Thank you for the nice compliments. Don't worry I will never sell or charge for anything. I very much enjoy helping in any way that I can.

derekbanas
Автор

An instance of inner class exists only in an instance of the outer class. It has access to the methods and fields of its enclosing instance. Does that help?

derekbanas
Автор

Thank you very much :) It has been a fun journey making these videos. I hope I improve as much over the next 4 years as I have during the first 4. It is very nice that people are watching them now!

derekbanas
Автор

how do I hide a panel which is inside of another panel?

amigoscode
Автор

I think that your way is the way to go! I have always been a 100% guy as well that believed people should completely understand one language before moving on to others. I think your process for learning is great as well. I'm glad you are finding the videos useful :)

derekbanas
Автор

I like it, it's a very excellent use of chunking information which kind of makes it easier to remember.

And by the way I have to say you've actually taught me waaaay more about java in just 21 lessons than two semesters have taught me in college. Really looking forward to watching ALL of the tutorials you've done.

chucklesae
Автор

hi, i still didn't get into this part of tutorials but this comment and i just wanted to tell thati saw many tutorials on youtube i even bought some DVDs and MANY books
but believe me, your way to explain things is A LOT better and easier to understand and you know what ? i guess i figured out the formula :3
say it your way :
"well Hello Internet today we're gonna talk about + AWESOME THINGS + leave any question or comments below otherwiiiise till next time "
You Are Awesome !!

alaslipknot
Автор

I cover the JComboBox in this tutorial newthinktank.
Sorry about the disorganization

derekbanas
Автор

Teaching the why is the hardest part. Most books I have read never teach the why. I did my best to teach the why side here and in the OOD tutorial

derekbanas
Автор

The way that makes the code easiest to read. As the tutorial progresses I go out of my way to show numerous ways to use components. My MVC tutorial shows the textbook way to handle interfaces. I hope that helps

derekbanas
Автор

It is better normally to make more classes then I'm creating here. I just do that to make it easier to make the tutorial. You'll see eventually how I really make programs in the real world. I cover how I design them in my Object Oriented Design tutorial. I cover how I really write code in my refactoring tutorial

derekbanas
Автор

I like to keep the listeners there, but if you prefer to put them in a method that is fine. What OS are you using? I'm wondering why you're having that problem

derekbanas
Автор

First java, but you don't need to watch all of them if you're only interested in Android. If you don't completely get OOP then watch Object Oriented Design. Algorithms will allow you to better understand code, but it isn't needed for Android wither really. Refactoring covers how to write very easy to understand code

derekbanas
Автор

For a complete answer watch my singleton design pattern video tutorial. Otherwise, some times it is better to call a function that returns an object instance rather then calling the constructor

derekbanas
Автор

Thanks for the tip, I am watching this anyway because i want to be a 100 % guy.

I am gonna finish this video first, and then do the OOP tutorial.

It takes me like a Hour or so to finish 1 part because i write along you in eclipse, and play a bit with the code and change some thing and watch what happens etc, if i think i get it for 100 %, i move on and press play. That really helps me to understand everything.

Anyway, thanks!

mausyxl
Автор

Thank you. I'm glad you like them. I'll cover pretty much everything Java by the end

derekbanas
Автор

Thank you very much for that compliment :) From what I heard from others I teach more about Object Oriented Design, design patterns and refactoring then some colleges. Those are all java tutorials as well. I hope they help

derekbanas
Автор

6:30
quickly import - CTRL + SHIFT + o
quickly add unimplemented methods - CTRL + . and then CTRL + 1 and hit ENTER


Best tutorials i've followed and also your channel is very interesting

coriiudavid
Автор

I really appreciate that your tutorials give me a chance to realize the Java world in an easy way ! You rock !~

MrBEABBKING
Автор

hey Teacher Derek, you saved me... I did a college exam after watching ur tutorial and I do great... thanks for helping :) ....

paulorinze