Added: 2 years ago
From: thenewboston
Views: 48,972
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (41)

Sign In or Sign Up now to post a comment!
  • 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

  • Hi Bucky!! I got a question.

    why it doesn't work if I change layout.layoutContainer(contain­er); to container.setLayout(layout);

  • @Sean791022 I believe that .layoutContainer is a way of refreshing the layout. I removed the layout.layoutContainer(contain­er) 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 In eclipse you can hover over methods and a tooltip should popup telling you what that method does, if you ever get confused.

  • @8:25 music to my ears :P

  • @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

  • 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?

  • 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...

  • 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 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.

  • no dislikes!!!

    YYYYYYYYYYAAAAAAAAAAAAAAAYYYYY­YYYYYYYY!!!!!!!!!!!!!!!!!

  • what is a container?

  • 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

  • who is this haas he keeps talking about? im guessing its a reference of some kind...

  • @Keener27 its his nickname

    

  • @riverplatejs oh, haha. how did you find that out? in one of his videos?

  • 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 it's not a 1 its an l (lower case L) lol i ran into that problem while in another compiler, very tricky.

  • @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.

  • GAMESSS!

    YEAAAAAAAAAAAAA!

    I've been waiting for that word for 83 videos!!

  • @hdanijel

    ME TOO! :D

  • GAMES :O

  • @mythictales there are special java games tutorials on his channel, check em out ;)

  • @hihaatje thanks : )

  • what are you using for your compiler?

  • hey bucky, could you please make a tutorial on Box layout? Thanks :)

  • 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.

  • Comment removed

  • 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 haha thanks for the heads up, I was doing the exact same thing.

  • @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 =)

  • 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.

  • 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 <_<

    JButton btnMain = new JButton("Text");

    btnMain.setLocation(int x = 100, int y =100);

  • Awesome.

  • Thanks bucky

  • 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

    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.

  • great job as always!

  • 83 great i was wait for this one:)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more