Imagine how hard programming must be for people who don't speak English, since nearly all programming languages seem to be in English. Nintendo and Sony seem to have done alright though :P
@Sean791022 I believe that .layoutContainer is a way of refreshing the layout. I removed the layout.layoutContainer(container) line from my code and after doing so the buttons didn't move aorund after clicking them. setLayout probably doesn't have this same funcstionality.
bucky, I noticed that you never got back to flow layouts after having done the graphics stuff. It's too bad. There is so much more to doing Layouts then Center/Left and Right.
Like, how to do new lines/spaces between objects? I want my button/tag to go on the next line.How do I put an image as the background of my dialog box??
what would happen if we didn't add the container?? does it affect the whole program?? please help because i will have my individual hands on in our programming class...
@mirumo02 You use private variables in your public classes when you don't want outside classes/programs to access them by accident. This is in the event that your public class and the program have variables with the same name. In that case, you don't want the main program to get mixed up, so you use private variables. In this case, bucky did not need to use private variables but it's a good practice non-the-less.
Hey bucky how do you know when you are supposed to use an Action Listener or a MouseEvent listener or an item Listener.... and also is there a time when you should create a Handlerclass or can you always just create an anonymous handler class, thanks for the tutorial btw
When I type the "Layout 1 =..." on the main class it underlines in red and when I mouse over it says not a statement ';' expected even though i copied everything right. What do I do?
hey bucky, or someone if can answer. " HOW do i set Position or location for a JButton? i tired like button.setLocation(40,50); but did not work, can anyone help me?
ur tutorials are really good, i have one question, hopefuly you will reply with an answer.
i want the content such as labels, buttons, etc to look like the flowlayout(with spaces in between the components) but they should also be fixed, as in the components cant move around the window like a what happens in the flow layout. thank you.
I kind of hope we will be going to learn how to set fixed positions for buttons too, so everything is where I want it to be and doesn't move! *hopehopehope*
I learned Java in high school and C++ in college. Java took me about a year (simply because that was how the class was structured), while C++ took me about two days, since I already had some experience. To be proficient in Java or any other language, just write as many programs as you can and you should be able to learn it pretty quickly.
Imagine how hard programming must be for people who don't speak English, since nearly all programming languages seem to be in English. Nintendo and Sony seem to have done alright though :P
TheViolinCalamity 1 week ago in playlist Java (Beginner) Programming Tutorials
Hi Bucky!! I got a question.
why it doesn't work if I change layout.layoutContainer(container); to container.setLayout(layout);
Sean791022 4 months ago
@Sean791022 I believe that .layoutContainer is a way of refreshing the layout. I removed the layout.layoutContainer(container) line from my code and after doing so the buttons didn't move aorund after clicking them. setLayout probably doesn't have this same funcstionality.
darkinin 4 weeks ago
@darkinin In eclipse you can hover over methods and a tooltip should popup telling you what that method does, if you ever get confused.
darkinin 4 weeks ago
@8:25 music to my ears :P
MusicRevelance 5 months ago
@hdanijel Haha, ne`s vjerovat, al` i ja isto!
3 i po` sata gubim na ovom cudu,misleci da ce otpocetka samo o tom` govorit.
Al` ajde, moglo je biti i gore, recimo 100 videa. =D
Marichuy92 6 months ago
bucky, I noticed that you never got back to flow layouts after having done the graphics stuff. It's too bad. There is so much more to doing Layouts then Center/Left and Right.
Like, how to do new lines/spaces between objects? I want my button/tag to go on the next line.How do I put an image as the background of my dialog box??
Custom buttons?
DemocraWatch 6 months ago
what would happen if we didn't add the container?? does it affect the whole program?? please help because i will have my individual hands on in our programming class...
mirumo02 6 months ago
why did you use private?? because i still don't get it..
and is it applicable to all even if its Frame, not JFrame??
mirumo02 6 months ago
@mirumo02 You use private variables in your public classes when you don't want outside classes/programs to access them by accident. This is in the event that your public class and the program have variables with the same name. In that case, you don't want the main program to get mixed up, so you use private variables. In this case, bucky did not need to use private variables but it's a good practice non-the-less.
DemocraWatch 6 months ago
no dislikes!!!
YYYYYYYYYYAAAAAAAAAAAAAAAYYYYYYYYYYYYY!!!!!!!!!!!!!!!!!
awesomelemonade 6 months ago 3
what is a container?
estario 7 months ago 2
Hey bucky how do you know when you are supposed to use an Action Listener or a MouseEvent listener or an item Listener.... and also is there a time when you should create a Handlerclass or can you always just create an anonymous handler class, thanks for the tutorial btw
sebg18 11 months ago 2
who is this haas he keeps talking about? im guessing its a reference of some kind...
Keener27 1 year ago 2
@Keener27 its his nickname
riverplatejs 1 year ago
@riverplatejs oh, haha. how did you find that out? in one of his videos?
Keener27 8 months ago
When I type the "Layout 1 =..." on the main class it underlines in red and when I mouse over it says not a statement ';' expected even though i copied everything right. What do I do?
CWOTS 1 year ago
@CWOTS it's not a 1 its an l (lower case L) lol i ran into that problem while in another compiler, very tricky.
Yekolf 1 year ago 23
@CWOTS It's not "Layout 1", it's "Layout l". "l" is the just the name of the Layout object, you can name it whatever you want but not numbers.
johnxxx9 1 year ago
GAMESSS!
YEAAAAAAAAAAAAA!
I've been waiting for that word for 83 videos!!
hdanijel 1 year ago 86
@hdanijel
ME TOO! :D
petteral94 10 months ago
GAMES :O
mythictales 1 year ago
@mythictales there are special java games tutorials on his channel, check em out ;)
hihaatje 1 year ago
@hihaatje thanks : )
mythictales 1 year ago
what are you using for your compiler?
MrDadcard 1 year ago
hey bucky, could you please make a tutorial on Box layout? Thanks :)
koolsoldier 1 year ago
hey bucky, or someone if can answer. " HOW do i set Position or location for a JButton? i tired like button.setLocation(40,50); but did not work, can anyone help me?
fakeface20 1 year ago
ur tutorials are really good, i have one question, hopefuly you will reply with an answer.
i want the content such as labels, buttons, etc to look like the flowlayout(with spaces in between the components) but they should also be fixed, as in the components cant move around the window like a what happens in the flow layout. thank you.
mightyburee 1 year ago
Comment removed
MrMelonBread 1 year ago
That was great!
Just don't be like me and mistake all the [ l ]s for [ 1 ]s. I went just about nuts trying to figure that out.
Fbiman93 1 year ago
@Fbiman93 haha thanks for the heads up, I was doing the exact same thing.
ConMahaff 1 year ago
@Fbiman93 Me too! I was going crazy because I had the exact thing he had, if I didn't read your comment I wouldn't have figured it out, Thanks =)
rsaccountsforyou 1 year ago
this is a great tutorial...
but he probably shouldn't have made his own JFrame class as the private flowlayout object as the same name, would confuse people.
keeperkai999 1 year ago
I kind of hope we will be going to learn how to set fixed positions for buttons too, so everything is where I want it to be and doesn't move! *hopehopehope*
relysaa 1 year ago
@relysaa <_<
JButton btnMain = new JButton("Text");
btnMain.setLocation(int x = 100, int y =100);
MrMelonBread 1 year ago
Awesome.
metal4life68 2 years ago
Thanks bucky
siva2cu 2 years ago
hi man great turorials ive subscribed but i have a question how long do you think typically does it take to become ok with java on eclipse
58kungfu 2 years ago
@58kungfu
I learned Java in high school and C++ in college. Java took me about a year (simply because that was how the class was structured), while C++ took me about two days, since I already had some experience. To be proficient in Java or any other language, just write as many programs as you can and you should be able to learn it pretty quickly.
velschtein 2 years ago
great job as always!
68kaspar 2 years ago
83 great i was wait for this one:)
Migoicons 2 years ago