I have a question.. how do i browse an image from a computer and put/load it in my gui..? I'm making a program that when a user gets an image from a computer, it show in the frame then tags the faces of the people on the list.. In short, it's face tagging. and it's offline
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!
@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.
@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
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
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.
@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);
@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.
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.
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 :)
@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).
@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.
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?
@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
Ok guys, my friend showed me this website about two weeks ago and it gives out free electronics...this is real and if you want more info, go to my youtube channel and look at the vid, its description, and if your interested, send me a message with your email. I'll sign you up right away. Thats the only way to gain access to this site is to be invited by another member. So yeah, check out my channel.
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
devilazpl 2 days ago
where are pointers in Java?
devilazpl 2 days ago
Error : Can not find method add .. how can i fix this??
musacleverboy 1 week ago
@musacleverboy inbox me the entire error it gives you. I'm not sure what line it is on, or what file it is in...
Unon1100 1 week ago
@musacleverboy it may be when you type f.add(p) and you accidentally said f.add()
Unon1100 1 week ago
has anyone else noticed Bucky names all his classes after foods?
bogey134 1 week ago
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 1 week ago
@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);
devilazpl 2 days ago
@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?
QuantumDecerto 1 month ago
I realy admire your patience that's what i lacked and therefore couldn't become a programmer
navylaks2 1 month ago
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.
theGorus 1 month ago
Thank's so much!
renatoluizcarvalho 2 months ago
Comment removed
CodeNameJava 2 months ago in playlist Java Programming Tutorials
This has been flagged as spam show
I have a question.. how do i browse an image from a computer and put/load it in my gui..? I'm making a program that when a user gets an image from a computer, it show in the frame then tags the faces of the people on the list.. In short, it's face tagging. and it's offline
PLEASE HELP ANYONE??
borsxo 2 months ago
Bucky Roberts.. You are the Don.
saheds 3 months ago
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!
crusaders36 3 months ago
That's eclipse obviously lol
PeaceWalker31 3 months ago
hello im using netbeets this same code is not working... help!
is it cos im using netbeens
05bhavin 3 months ago
Comment removed
05bhavin 3 months ago
Comment removed
05bhavin 3 months ago
This comment has received too many negative votes show
fix your warnings before teaching
catalinaguerrero 4 months ago
@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 3 months ago 11
@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.
jemersonfd 3 months ago
ont he screen ye rite -.-
radonas 4 months ago
what java interface are u using...like eclipse,blue j or any other
TheSlashvanhalen 4 months ago
@TheSlashvanhalen eclipse he said it in his second/third video.
TheKissimRunners 4 months ago
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 4 months ago
@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
CODtheater 4 months ago
@MusicRevelance your gay...
Lt0Th3M 4 months ago
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.
xVerbati 4 months ago
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
xVerbati 4 months ago in playlist Java Programming Tutorials
misspelt description again XD
DazKins 4 months ago
Maby it's the "JAVA professor(she has a goddamn PhD in Computer Science)"
who disslikes this videos.... LOL.
geirendre 5 months ago
Hello World
tristan344 5 months ago
@tristan344 for that see tut 2
radonas 4 months ago
@themanp6p lol
qbblast 5 months ago
@themanp6p Well, it would help where you are actually GETTING the errors.....
qbblast 5 months ago
I added the second class to my main class, with the f.add(p); and I have nothing showing up on my screen still
Arc72Productions 5 months ago
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 6 months ago
@Shamanmagic95 Do you have curly braces after that?
public void paintComponent(Graphics g){
EarthWorms77 5 months ago
@EarthWorms77 I got it, i had to import another file. Now I am doing graphics like a boss!
Shamanmagic95 5 months ago
I like peaches too bro.
zerohourkevin 6 months ago
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 6 months ago
@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.
n8style 5 months ago
erm can this work without the extends jPanel?
pspiso123 6 months ago
@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);
christoiMc 6 months ago
Did anyone else get stuck watching 83 vids before this? :O (i kinda just skipped about 82)
r4microds 6 months ago
2 people are squares^
Ninjason1337 6 months ago in playlist Beginner Java Tutorials
Thanks for the Info Welor !!
riky9031 7 months ago
which one is better.... Netbeans or Eclipse ?
riky9031 7 months ago
@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.
MacProgrammar 7 months ago
@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.
christoiMc 6 months ago
Comment removed
riky9031 7 months ago
Which software it is?.... i am using Notepad++ for coding but this software looks great.....
riky9031 7 months ago
@riky9031
The software name is Eclipse
Welor 7 months ago
@riky9031 He is using Eclipse
CodeSensitive 1 month ago
NOM NOM NOM I EATZ YOUR PEACHES but good tutorial :D
blenderobsession321 7 months ago
You are much better than my IBM sister! ;)
Betahau 7 months ago
Sexy stuff ;)
monkey64cow 7 months ago
BLEH! PEACHES?! BLEH!!
BUT AWESOME TUTORIAL! :D YUMMY!
zldamstr 8 months ago
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.
finnvoid 8 months ago
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.
finnvoid 8 months ago
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
Fangornmmc 8 months ago
What program are you using bucky?
songs1210 9 months ago
@songs1210 Eclipse IDE
LampOnCo 8 months ago
I have the same exact code and it won't show a white background or any rectangle, and text at all
Khoaster 9 months ago
Comment removed
Khoaster 9 months ago
Oh boy oh boy OH BOY!
Just 3 tutorials away to finish this beautiful *cough* beginner *cough* journey !!!!!!!!!! :D
LPSlasher 10 months ago 27
i disliked :3 TROLOLOLOLO
artilonilolo 10 months ago
@artilonilolo trololololo xD.. do u watch slyfox?
ar4youready 10 months ago
@artilonilolo haha, only dislike!
HiddenArrow1000 9 months ago
Thirty eight THOUSAND views....and 0 dislikes. Me <3 Bucky/Greg
I0met0him 10 months ago
First tut I've seen so far that didn't have 1 dislike just sitting there.
I guess the haters really like boxes
Priggage 11 months ago
Comment removed
ciken500 11 months ago
2 weeks passed and my cartoon character is DONE!!
Hooray for me!!!
MidnightRedemption 11 months ago
idk what this is but yet it interests me so lol
raiderboy012 11 months ago
my professor said our project is drawing a cartoon character on java.
IS THAT EVEN POSSIBLE?!?!
MidnightRedemption 1 year ago
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
riskypwns 1 year ago
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 :)
alexslipknot666 1 year ago
oh yea i forgot to add, from another class or method?
TheCyBorG3132 1 year ago
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!
TheCyBorG3132 1 year ago
for making your own color, could you put in a hex number instead of a RGB value?
theMacBoy11 1 year ago
@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 1 year ago
@Hildoz2 thanks a bunch, going to check to see if you can do that!
theMacBoy11 1 year ago
@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 1 year ago
@Hildoz2 thx =]
theMacBoy11 1 year ago
@theMacBoy11 No problems, mate. :) Send me a PM or something if you need any help. I know a trick or two, hehe.
Hildoz2 1 year ago
My java class... used Applets and started at Graphics... and pretty much ignored everything else just because they taught C++....
ThePhoenixRider 1 year ago
whats the x and y for the center of the screen?
kaushikpaddy 1 year ago
@kaushikpaddy It depends on what you set for the window size... hope I helped :)
ThePhoenixRider 1 year ago
@ThePhoenixRider oh ok ok sorry stupid question so for a 100*100 screen will 50-50 be the middle???
kaushikpaddy 1 year ago
thanks so so much
MrCaubebutchi 1 year ago
Can someone tell me why you should use paintComponent instead of paint? Or when you should use which one?
3landriel 1 year ago
Help, when i try create the public void paintComponent it says its missing Graphics class
jesse18jaar 1 year ago
@jesse18jaar
did you import the same stuff as bucky?
CanyonOasis 1 year ago
i totally got lost after u went into the other window and started talking? do we need that window too or something?
Alexanderstuve 1 year ago
does this work with textpad as good with " that you use" ?
Alexanderstuve 1 year ago
This has been flagged as spam show
wow... thanks so much. you really helped me out for my computer science class. great vid
PANAMAnese 1 year ago
wow... thanks so much. you really helped me out for my computer science class. great vid
PANAMAnese 1 year ago
nice tutorial
chapukun 1 year ago
Pure genius! Bucky 4 president of the world!
empesophia 1 year ago
Wont need to go to school anymore..
i will pay this guy about $1000 per month for a 10 minute lesson!
1adajan 1 year ago
computer games!!!
Cantinflat 1 year ago
@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
MrMelonBread 1 year ago
Great tutorial but ive been trying to draw these shapes only when a button is pressed any idea how to this? im stuck
scullshot 1 year ago
@scullshot ...Create the action or method for a graphic to be drawn inside the action handler for your JButton
MrMelonBread 1 year ago
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 1 year ago
@ConMahaff alright found the problem, spelled Component wrong, my mistake
ConMahaff 1 year ago
great work again...
MrSanoka 1 year ago
"Make sure you spell text wrong, or it won't work."
LOL
Fbiman93 1 year ago
i like peaches
derrty90 1 year ago
i got Invalid path, \bin\javac.exe -classpath
how can i solve this??can u help me?
pipha13 1 year ago
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 1 year ago 77
@ruler999 just because you have a degree it doesnt mean that you can teach.
chubbystudios 1 year ago 4
@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...
relysaa 1 year ago
@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
zoniks55 1 year ago 5
@ruler999 its because he have to make it more complicated so that people wont be a prof in a day
KomukiZ 6 months ago
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..
maeishoj 1 year ago
Class!
TurkeyCommander 1 year ago
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 ?
sanjayapps 2 years ago
Don't mind. I found the problem.
sanjayapps 2 years ago
this guy is better than my computer science teacher lol
23SuS23 2 years ago 107
@23SuS23 Thats pretty ballsy to say.
MrMelonBread 1 year ago
@23SuS23 Thenewboston is a PROFESSOR
TheADMIRAL911 11 months ago
Hi, can you learn about Histogram...
Thanks
anatlibman 2 years ago
This has been flagged as spam show
Now I got it!
5aull3xxx 2 years ago
This has been flagged as spam show
Ok guys, my friend showed me this website about two weeks ago and it gives out free electronics...this is real and if you want more info, go to my youtube channel and look at the vid, its description, and if your interested, send me a message with your email. I'll sign you up right away. Thats the only way to gain access to this site is to be invited by another member. So yeah, check out my channel.
sugardaddy2244ISbak 2 years ago
You should do a tutorial on tic tac toe game with and without the GUI.
walimaster0131 2 years ago
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
swisstrucker 2 years ago 2
I had some hard time figuring out how to use gaphics but learned me so fast!
Im subscribing! U rox!
AwsomeAnte 2 years ago
You are awesome
Megastock0 2 years ago 2
NICE
family4life987 2 years ago 3