If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
16:41 The count didn't increase on the first click as you used post-increment (upCount++) this will first setText then it will increment. So, it is technically giving the count as one less. Instead you could try (++upCount) this changes the value on the first click since its pre-increment.
You deserve a million subs! Your tutorials are extremely useful and easy to understand. And you seem to be such a humble, passionate and sweet guy. Love your videos and I’m so glad I found your channel! Every time I watch one of your videos, I get excited about all the cool things that can be done with programming! It’s my dream to make my own game and your tutorials help me get closer to that goal.
Really helped me a lot thanks! For those who did not know, the labels only updated after the second press because he used post-incrementing instead of pre-incrementing to increase the respective count variables.
Hi Alex! You dont have to use the labelName.setText() method to set the text of the label. instead you can already specify the text when you initialize the Label variable. example: JLabel label = new JLabel("Random text here"); but if you want to set the text to something else later on in the code, then setText() can be used
Thank you for this video. Was a great introduction to GUI and keylogging. No idea if you still read this but I will be sure to work through the playlist.
Great content... Pls do more of such practice videos , these are so helpful for beginners who learnt basics and trying to get hands-on with java programs😇
Hi I am a 15 year coder because of you. I have a code: System.out. printIn("Alex you are amazing"); System.out. printIn("Love from India"); Output: Best teacher ever.
Absolutely brilliant video. Sorry to see you left Java teaching, but subscribers are still coming, as I can see. If you change your mind someday, please consider more GUI content on this channel. Cheers!
Heyy thanks a lot for the efforts you ve been putting in your channel! It s the first app I made and Im really happy. Even exported it and made it as an actual app to see if it d work, and it does! Also, just put ++upCount etc so it'll start with 1 from the first click
I am also confused for what the set Focusable and set default close operation does because by writing or deleting them make no change in the JFrame window
@@agnibinasaha7047 From what I understand from the other forums is that: By using the set default close operation, when you close the the jframe window the program will be terminated and stop running completely. (If you. use .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) ) If you don't use the set default close operation, the java program will still run in the background even after you click the close window.
My coding said that cant find symbol for keyevent Second is says method does not overide (@Overrride) And lastly at frame addkeylistener(new keylistener) is said that it is not abstract and not overide. Plis help me someone
little help: when you don't have any ide... just create a java file ([name].java) and then code something into it. when you are done coding, save it and open cmd (command prompt) and go to the location where your file is saved and type the following: "javac [name].java" and to start it type "java [name]"... everytime you made a change into the program, do the same process again
Hey, guys one question During mimicking his code, and watching this video, do I have to memorize everything? that's the one of the way i can take a one step? tho I've been studying JAVA by watching his video, I actually still don't know how to study effectively. Im just watching and trying like his code.
alex i didnt understand the keylistener part please i would appreciate it if you made its more clear in another video.i love your channel and i always watch your videos.thx : )
Thank you I got the solution and my programme is running perfectly but I have another question , how can I print multiple lines in JFrame ? Please help me .
@@mattvella They don't, one is a Pre_increment and the other one is a Post-increment. While they both increase the value by one, they do it at different times.
I hope people are still here reading these comments, because I don't know where else on the internet I'll find this specific problem...when I press one of my arrow keys all the numbers go up? Some of the keys only increase their own number, some increase two, some increase all...depends which I press first every time I run it. This might be useless, to ask it here, but if someone had an answer that would be amazing!
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
16:41 The count didn't increase on the first click as you used post-increment (upCount++) this will first setText then it will increment. So, it is technically giving the count as one less.
Instead you could try (++upCount) this changes the value on the first click since its pre-increment.
You deserve a million subs! Your tutorials are extremely useful and easy to understand. And you seem to be such a humble, passionate and sweet guy. Love your videos and I’m so glad I found your channel! Every time I watch one of your videos, I get excited about all the cool things that can be done with programming! It’s my dream to make my own game and your tutorials help me get closer to that goal.
Great video. Thank you. I personally would love to see more GUI stuff.
Really helped me a lot thanks! For those who did not know, the labels only updated after the second press because he used post-incrementing instead of pre-incrementing to increase the respective count variables.
Using a Pre-Increment fixes the problem of needing to double tap.
Great video!
Hi Alex!
You dont have to use the labelName.setText() method to set the text of the label.
instead you can already specify the text when you initialize the Label variable.
example:
JLabel label = new JLabel("Random text here");
but if you want to set the text to something else later on in the code,
then setText() can be used
Good point
@@shotx333 ty
You made Java a fun roller coaster! Loving the way...
I found this video very helpful up against my university studies project. Clear and fast explaination, thanks a lot!
Thank you for this video. Was a great introduction to GUI and keylogging. No idea if you still read this but I will be sure to work through the playlist.
At least this video helped me more than 3 hours of teaching lessons by my computerscience prof, Great Job !!
Hi,Alex! "VK" is meant "Virtual Keyboard"))
Lucky Tramp ah I didn’t know that, thanks!
@@alexlorenlee I'm still with you, Alex. I think it stands for "something".:) You're funny, little brother. Great videos. Thanks. keep it up.
Hey I'm from India...and VK means VIRAT KOHLI 👑 lol..
@@vaibhavparate2131 yeah i knew it from c++
Thank you so much your explain everything so well
Thanks mate. You are amazing , I really enjoy watching your tutorials and learnt a lot
that's a pretty unique way of doing it. I can plop that down anywhere in my code instead of finding some way to communicate between methods. Thanks!
Great content... Pls do more of such practice videos , these are so helpful for beginners who learnt basics and trying to get hands-on with java programs😇
At around 15:23, why do you convert the integer to string?
Hi I am a 15 year coder because of you.
I have a code:
System.out. printIn("Alex you are amazing");
System.out. printIn("Love from India");
Output:
Best teacher ever.
haha awesome, I'm glad you like my videos!
I doubt you'll get that output from that code.
AMAZING! my first time coding a program with GUI and i just love it ♥
So far my favorite video on your channel! Hopefully you will unleash the power of Java for GUIs, fingers crossed!
Hi Alex I am your biggest fan from India :)
Fun time with Parth and shaurya woah that’s awesome! All the way out from India, welcome!
Absolutely brilliant video. Sorry to see you left Java teaching, but subscribers are still coming, as I can see. If you change your mind someday, please consider more GUI content on this channel. Cheers!
underrated Channel thanks for your content !
Awesome dude, that's kind of makes it easier the way you teach
thanks!
Heyy thanks a lot for the efforts you ve been putting in your channel! It s the first app I made and Im really happy. Even exported it and made it as an actual app to see if it d work, and it does! Also, just put ++upCount etc so it'll start with 1 from the first click
I laughed so hard at the "VK" part haha, Thanks a bunch bro, I seriously appreciate you and the videos!
Thank you, I had a problem with this and I couldn't find a solution for several days, until now.
Thanks, really usefull when showing to newphew how to work with key press events.
Hi, I have a question here that is why do we need set.Focusable(true) and what it is? What happens if we do not have it in the program?
I am also confused for what the set Focusable and set default close operation does because by writing or deleting them make no change in the JFrame window
@@agnibinasaha7047
From what I understand from the other forums is that:
By using the set default close operation, when you close the the jframe window the program will be terminated and stop running completely. (If you. use .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) )
If you don't use the set default close operation, the java program will still run in the background even after you click the close window.
Thank you very much . I have another problem , how can I print multiple lines in JFrame , please help me .
hello Alex....im really strugggling with the Java like when i create the package or class or when to pull something from the other class or package
THANK YOU SO MUCH, BRUH I HAVE TRIED THAT TOO MUCH, ALL LONG DAY, JUST FOR THAT THING
My coding said that cant find symbol for keyevent
Second is says method does not overide (@Overrride)
And lastly at frame addkeylistener(new keylistener) is said that it is not abstract and not overide. Plis help me someone
just re do it a scnd time helped me too
Thanks Alex. keep rocking, you will get lots of subscribers. Could you also focus on stream api's?
Big bro Alex, I am unable to subscribe your mailing list....
are you on mobile? My website is a little finicky on mobile and might not let you enter an email, but it should work on your computer
@@alexlorenlee Thank you..
KeyPressed Event doesn't get called no matter what I do, I've triple checked I did EXACTLY as he did, it isn't being called
little help: when you don't have any ide... just create a java file ([name].java) and then code something into it. when you are done coding, save it and open cmd (command prompt) and go to the location where your file is saved and type the following: "javac [name].java" and to start it type "java [name]"... everytime you made a change into the program, do the same process again
ok I guess your tuts will help me a lot with my school :) thanksss
How to detect fn key pressed event in java
?
is not abstract and does not override abstract method keyreleased(key event) in keyListener
....
Sir what does its mean....plz explain me
please tell me anyone
everything he mentioned above this video, do I have to memorize whole thing to type when i need?
Is it possible to write this code with enigma without using jframe
More GUI, please!
I love the video. Your content is so awesome. Personally, I would love a buttons tutorial that you talked about around 6:26
Great video. Thank you.
the reason u had to type twiche before it startet was that up: 0 and when u type the up key it gets set to: int upCOunt = 0;
I solved this by doing:
int upCount = 1;
int downCount = 1;
int leftCount = 1;
int rightCount = 1;
@AlexLee please can you do another video to do something with this code and make a simple game
Hey, guys one question
During mimicking his code, and watching this video, do I have to memorize everything? that's the one of the way i can take a one step?
tho I've been studying JAVA by watching his video, I actually still don't know how to study effectively.
Im just watching and trying like his code.
Will this work on dr.java aswell?
Alex. You're a great teacher. You can make my 44 years old ass understand this stuff... :D
alex i didnt understand the keylistener part please i would appreciate it if you made its more clear in another video.i love your channel and i always watch your videos.thx : )
Thank you I got the solution and my programme is running perfectly but I have another question , how can I print multiple lines in JFrame ? Please help me .
You can do that by setting the layout of the panel to "null" and then set the bounds of the other Labels
Hi Alex, can you please make some videos on UI app development
Hi, can i know is it possible to get the key press count as you did without the focus of the relavant window? If yes any help here!!
My programme is showing an error ' cannot find symbol class KeyEvent ' please help me to fix it . By the way I am a big fan of yours from India
I ve created this . But arrow keys are not working . My lappy is Lenovo IdeaPad slim 3
Also I would like to send a screen shot how can I send u .
cant you make a video on how to make java click a arrow button?
like when i click k it triggers a function that clicks d.
You can save some lines with regex but thanks for the video anyway
you are very rude
You should use pre increment operator instead of post increment operator
for those of use who only speak English: that means use ++upCount instead of upCount++
Nice keyboard
you should've have put ++upCount instead of upCount++, or set the upCount starting value at 1.
one word.... gooey
You sound like J Perm!
thats what i thought
Hi Alex please make more videos in Java fx please thanks
System.out.print(“LOVE FROM AFGHANISTAN “)
first press had no effect because you wrote directionCount++ instead ++directionCount
They mean the same thing in Java, they both work
@@mattvella They don't, one is a Pre_increment and the other one is a Post-increment. While they both increase the value by one, they do it at different times.
I hope people are still here reading these comments, because I don't know where else on the internet I'll find this specific problem...when I press one of my arrow keys all the numbers go up? Some of the keys only increase their own number, some increase two, some increase all...depends which I press first every time I run it. This might be useless, to ask it here, but if someone had an answer that would be amazing!
Have you checked the variables name for counting? Maybe you have duplicate name for counting variables in different keys.
What is that keyboard -.-
Hi there, has anyone ever told you that you kinda sorta look like Rosamund Pike?