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

Link to this comment:

Share to:
see all

All Comments (135)

Sign In or Sign Up now to post a comment!
  • lol naked Java is 5x better and faster than C++ with all SDL/SFML/Allegro graphic libraries linked

    it has everything it should and u dont have to do anything by self

  • where are pointers in Java?

  • Error : Can not find method add .. how can i fix this??

  • @musacleverboy inbox me the entire error it gives you. I'm not sure what line it is on, or what file it is in...

  • @musacleverboy it may be when you type f.add(p) and you accidentally said f.add()

  • has anyone else noticed Bucky names all his classes after foods?

  • how would i make a square appear if i use this in a action listener? say if i press a button. i cannot figure this out!

  • @SOAD525

    i think you need to create squares and buttons in one class

    then set squares to invisible

    sqr.setVisible(false);

    and if button is pressed set them to visible (true);

  • @thenewboston how have you done that without any feilds or a constructor.

    i am learning to program with BlueJ ; i dont know if that makes a difference?

  • I realy admire your patience that's what i lacked and therefore couldn't become a programmer

  • Just don't go typing Jframe instead of JFrame, I was so angry that it didn't work, turned out to be a simple capital missed.

  • Thank's so much!

  • Comment removed

  • Bucky Roberts.. You are the Don.

  • Why is it I am unable to draw two different instances of the peach. If I draw one it works, if I try to draw another the first one disappears? SOMEONE HELP!

  • That's eclipse obviously lol

  • hello im using netbeets this same code is not working... help!

    is it cos im using netbeens

  • Comment removed

  • Comment removed

  • @catalinaguerrero You're so dumb.. Those warning are 'cause he hasn't used the imports yet, which is fixed once you use them.. Go whack off else where fuck all.

  • @ProjectRebellious More than that, most of the warning are just annoying info, which can be simply discarded via preference in some Preferences Menu. In time: @catalinaguerrero, avoid criticizing just for the act itself, this is sad.

  • ont he screen ye rite -.-

  • what java interface are u using...like eclipse,blue j or any other

  • @TheSlashvanhalen eclipse he said it in his second/third video.

  • i got a question. if import java.awt.*; imports everything cointained in java.awt library , why we need to import java.awt.event.* too?

  • @MusicRevelance java.awt.* imports everything in x.x.x, but in java.awt.event.* imports everything on the fourth. It's kind of hard to explain, but you'll figure it out. So it's like importing everything in: java/awt/importedstuff1 - And the other one is importing everything like so: java/awt/event/importstff2

  • @MusicRevelance  your gay...

  • Hey youtube comment readers, I may have a solution for your errors.

    I had an error and I figured out the problem, this error is probably the same as yours.

    The error was that I named my class "Graphics" instead of "Peaches"

    So the solution is to make a new class with a different name, I named mine "Drawing" and copy and paste the old class, but

    make sure it says your new class name in the public class method.

  • I think the reason that bucky is a better teacher than some college professors is because some teachers have a "knack" for teaching, and saying what they think others will understand, but that doesn't mean all teachers that know java, also know how to teach "well". idk just a thought

  • misspelt description again XD

  • Maby it's the "JAVA professor(she has a goddamn PhD in Computer Science)"

    who disslikes this videos.... LOL.

  • Hello World

  • @tristan344 for that see tut 2

  • @themanp6p lol

  • @themanp6p Well, it would help where you are actually GETTING the errors.....

  • I added the second class to my main class, with the f.add(p); and I have nothing showing up on my screen still

  • if some one could tell me why mine is not working I have public void paintComponent(Graphics g)

    as the error in my code saying that it is a bad class file.

    If somebody could tell me the problem i would have much thanks!

  • @Shamanmagic95 Do you have curly braces after that?

    public void paintComponent(Graphics g){

  • @EarthWorms77 I got it, i had to import another file. Now I am doing graphics like a boss!

  • I like peaches too bro.

  • Can anyone explain to me where the paintCompenent method is actually called? I'm confused as to how it is being used even though it is not called as part of the t object in the main method.

  • @gamalytical I think what's happening is the paintComponent method in the Peach class is overiding the paintComponent method in the JPanel class, and it gets called whenever the JPanel needs to be repainted.

  • erm can this work without the extends jPanel?

  • @pspiso123 Yes, the super method is just the object of the superclass, JPanel. Without extending it, you can just call it using JPanel panel = new JPanel(); panel.paintComponents(g);

    rather than super.paintComponent(g);

  • Did anyone else get stuck watching 83 vids before this? :O (i kinda just skipped about 82)

  • 2 people are squares^

  • Thanks for the Info Welor !!

  • which one is better.... Netbeans or Eclipse ?

  • @riky9031 At my opinion Eclipse, Netbeans got an implemented JFrame editor but you can download a plug-in for eclipse in 5 minutes and Eclipse works smoother in my opinion. I heard more people think the same about this as me. If you want you can also just download both. They are like 100 mb each.(Maybe even less) But then you can decide for yourself. But if you want a quick start. Start with Eclipse.

  • @riky9031 I don't know, but if you are new to java like I am, I doubt it really matters to be honest. Both should work fine, although you can get both to see for yourself.

  • Comment removed

  • Which software it is?.... i am using Notepad++ for coding but this software looks great.....

  • @riky9031

    The software name is Eclipse

  • @riky9031 He is using Eclipse

  • NOM NOM NOM I EATZ YOUR PEACHES but good tutorial :D

  • You are much better than my IBM sister! ;)

  • Sexy stuff ;)

  • BLEH! PEACHES?! BLEH!!

    BUT AWESOME TUTORIAL! :D YUMMY!

  • I prefer BlueJ, it has a very simple interface and shows graphical relationships between classes (such as inheritance and other dependencies), i've also started to use NetBeans also.

    Also, BlueJ doesn't irritate me by constantly suggesting stuff, yet it still color-codes key words.

  • I prefer BlueJ, it has a very simple interface and shows graphical relationships (such as inheritance and other dependencies), i've also started to use NetBeans also.

    Also, BlueJ doesn't irritate me by constantly suggesting stuff, yet it still color-codes key words.

  • He uses eclipse i recommend you watch the tuts in the right order youll learn a lot and it should be extremely easy to follow along

  • What program are you using bucky?

  • @songs1210 Eclipse IDE

  • I have the same exact code and it won't show a white background or any rectangle, and text at all

  • Comment removed

  • Oh boy oh boy OH BOY!

    Just 3 tutorials away to finish this beautiful *cough* beginner *cough* journey !!!!!!!!!! :D

  • i disliked :3 TROLOLOLOLO

  • @artilonilolo trololololo xD.. do u watch slyfox?

  • @artilonilolo haha, only dislike!

  • Thirty eight THOUSAND views....and 0 dislikes. Me <3 Bucky/Greg

  • First tut I've seen so far that didn't have 1 dislike just sitting there.

    I guess the haters really like boxes

  • Comment removed

  • 2 weeks passed and my cartoon character is DONE!!

    Hooray for me!!!

  • idk what this is but yet it interests me so lol

  • my professor said our project is drawing a cartoon character on java.

    IS THAT EVEN POSSIBLE?!?!

  • hi Bucky this is the first tutorial which i am viewing but it is very helpful . . your work helped me much more than my teachers explanations . . thank you very much for your help and patience 

  • Wow this is great, looking to learn Java before starting Uni, and I'm coming from C++. Just read Java for Dummies (awful book, but luckily the transition from C++ to Java is easy) and was looking for where to go next, this seems like a good start :) Thanks :)

  • oh yea i forgot to add, from another class or method?

  • Great tutorial Bucky, this just cut the work i hafta do for my project in half :P

    I have a question, if anyone can answer...Is there any way i can use variables for the parameters while drawing? How? Thanks a lot!

  • for making your own color, could you put in a hex number instead of a RGB value?

  • @theMacBoy11 If you google "java graphics api" you can see a list of the methods you are able to use. If it is possible, then you will see a method like setColor(*your hex thingie*). If not, then it's either not possible, or the method is located in one of the parrent classes (Graphics extends other classes).

  • @Hildoz2 thanks a bunch, going to check to see if you can do that!

  • @theMacBoy11 I did a little Googling, and I saw that if you make a new Color class you can specify the HEX number directly in the constructor's parameter like this: java.awt.Color colorNameHere = new java.awt.Color(0xFF0096); as long as you remember the '0x' before the HEX code.

    You can then use that color object with the g.setColor(colorNameHere); to use the example in the video to change to color.

    Have fun! :D

  • @Hildoz2 thx =]

  • @theMacBoy11 No problems, mate. :) Send me a PM or something if you need any help. I know a trick or two, hehe.

  • My java class... used Applets and started at Graphics... and pretty much ignored everything else just because they taught C++....

  • whats the x and y for the center of the screen?

  • @kaushikpaddy It depends on what you set for the window size... hope I helped :)

  • @ThePhoenixRider oh ok ok sorry stupid question so for a 100*100 screen will 50-50 be the middle???

  • thanks so so much

  • Can someone tell me why you should use paintComponent instead of paint? Or when you should use which one?

  • Help, when i try create the public void paintComponent it says its missing Graphics class

  • @jesse18jaar

    did you import the same stuff as bucky?

  • i totally got lost after u went into the other window and started talking? do we need that window too or something?

  • does this work with textpad as good with " that you use" ?

  • wow... thanks so much. you really helped me out for my computer science class. great vid

  • nice tutorial

  • Pure genius! Bucky 4 president of the world!

  • Wont need to go to school anymore..

    i will pay this guy about $1000 per month for a 10 minute lesson!

  • computer games!!!

  • @23SuS23 Thats pretty ballsy to say.

    @ruller999 Because maybe her teaching style does not work for you <_<

    @scullshot Put the method for drawing shapes inside the action handler for your JButton

  • Great tutorial but ive been trying to draw these shapes only when a button is pressed any idea how to this? im stuck

  • @scullshot ...Create the action or method for a graphic to be drawn inside the action handler for your JButton

  • so weird, after I compile it (no errors) nothing prints out on the screen, its just an empty box. I've checked my code like 10 times now, still haven't found a problem. Has anyone else gotten this?

  • @ConMahaff alright found the problem, spelled Component wrong, my mistake

  • great work again...

  • "Make sure you spell text wrong, or it won't work."

    LOL

  • i like peaches

  • i got Invalid path, \bin\javac.exe -classpath

    how can i solve this??can u help me?

  • What I can't understand is why in this holy hell my JAVA professor(she has a goddamn PhD in Computer Science) not able to teach as well as Bucky?

    Good job, Bucky...

    JFrames won't be a problem to me anymore...

  • @ruler999 just because you have a degree it doesnt mean that you can teach.

  • @ruler999 I think it's the whole "doing it and not just showing it" that makes the difference. If my prof would code everything from scratch and not just show 150 lines of codes of a finished programm, it wouldn't be so bad either. But hey, I guess those Profs like yours and mine don't feel like doing that and this is why I don't respect them...

  • @ruler999 i know man, like im taking a 120 online computer science course, i honestly read through everything my teacher had written and never understood one thing or learned a thing from him, i would of competly failed that course if it wasent for buckey, i think we should all vote buckey to become a java professor to make all our lives a lot easier when we go to collage

  • @ruler999 its because he have to make it more complicated so that people wont be a prof in a day

  • hey, could u make a tutorial about how to plot a cartesian plan and a function (example: y= x^2+2) in java?? please i can't find any help anywhere..

  • Class!

  • Strange ... I ran this program and it's not running. Instead it's running the previous program since it has main method in it.

    Any ideas ?

  • Don't mind. I found the problem.

  • this guy is better than my computer science teacher lol

  • @23SuS23 Thats pretty ballsy to say.

  • @23SuS23 Thenewboston is a PROFESSOR 

  • Hi, can you learn about Histogram...

    Thanks

  • You should do a tutorial on tic tac toe game with and without the GUI.

  • I really like your tutorials. We have at school java but till I saw your vids I didn't understand it. You make it very well and explain it perfect.

    Thanks

  • I had some hard time figuring out how to use gaphics but learned me so fast!

    Im subscribing! U rox!

  • You are awesome

  • NICE

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