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

Link to this comment:

Share to:

All Comments (104)

Sign In or Sign Up now to post a comment!
  • anyone else notice "HandlerClass" in the last video?

  • Comment removed

  • how would you apply the changing of the background to a button instead of the whole screen?

  • I did exactly what you did and still got a shit ton of errors, I use a mac so maybe that'll help the problem

  • Anyone else learning this so they can participate in ludum dare?

    I cant wait!!!!

  • @mcfundash1 Ohhohoho that is a great idea!

  • hey guys i am trying to add a mouseListener to a JTextField which I have stored as an array. So I have a private JTextField tf = new JTextField[5];

    for(int i = 0; i<6; i++){

    tf[i]= new JTextField("Hi"); }

    now I have have defo implement's all the methods needed for mouselistener and here is my mouselistener

    public void mouseClicked(MouseEvent e) { if (e.getSource()==(JTextField[])­tf){ System.out.println("this is a mouse click");} but this is just not working i.e. displaying text on console

  • tust him, there a getY method lol

  • you make learning fun

  • this is by far the funnest program we've made ;)

  • Yes :D now i can make this into mouse movement and such for my game :D WINZ :D

  • try this: inside mouseMoved(), write mousepanel.setBackground(new Color(100, event.getX(), event.getY())); but make sure the height and width of the panel doesn't exceed 255 or exception will be thrown =)

  • @burhan1992 really cool, thanks for sharing that =)

  • Gotta... get... coords to 0,0.... Wait what?? hes still talking? REWIND!!!

  • Bucky how can i export this program (as .exe i think) to a PC that doesnt have Eclipse, in the case when i want to show this program to a friend who doest have software dev programs.

  • @amiorkovtube File>Export...>(window will pop up)Java>Runnable Jar File , then under launch configuration select the file that has your main method in it.

    this gives you a .jar, im not sure how to get an .exe :(

  • @JKTCGMV13 Thanks i just found out how about a week ago and it the way you explained it, than you anyway tho.

  • @JKTCGMV13 @amiorkovtube You cant get an .exe thats only with c/c++, a completely different langouage (with a few similaritys) I plan to learn c++ and objective-c after java :D

    keep programmin!

  • @mcfundash1

    c++ would be useless since u learnt Java or C#

  • @mcfundash1 Then how minecraft, minecraft is coded in java and to entr the game there is a .exe

  • @kripis0 *slaps face* its called the freaking launcher that launches the jar file... Please, you're welcome to use your brain at anytime

  • 7:08 EPIC VOICE CRACK!

  • @doody884 hahaha heard it

  • Comment removed

  • WHO DISLIKED THIS? D:<

  • @DazKins :D

  • @DazKins trolls

  • If you change the colors so that mouse pressed is black and then the rest are white, and then you click really fast loads of times, you have a strobe.

  • The mouseEntered method will never work (you wouldn't

    see the "You entered the area" message, because the method

    mouseMoved captures the same event.

    Apart from that little "flaw", great tutorial :-)

  • Wow I'm so glad I found this set of tutorials. I looked forever online and found such useless stuff on mouse listeners, and this is just what I needed.

  • is draging same as pressing - moving - releasing?

    if yes, why do we need a "drag"?

  • @Coolcl0wn

    It's easier to tell the program "if dragging", instead of "if mouse moving and mouse down" every time. 

  • Love these tutorials, amazingly done! Can't wait to watch the rest! =) !!GO BUCKY!! :D

  • Sorry bucky I can't subscribe two times :-(

  • I hava all these GUI tutorials in one file. So I have big window with bunch of buttons when I run it. For some reason I can't add status bar to it. Is that because of "SetLayout..."? Please, help

  • ahah you should add an event that when the mous enters the window a nasty website like lemon***** pops up and then send it to a firend xD

  • I want to hack YouTube just to add a super like button.

  • @LoganRWeber i think it's called the favourite button

  • When I try this program, I get the error "selection does not contain a main type"

  • Comment removed

  • Comment removed

  • any client/server tutorials?

    

  • you shoud make like a little homework , just for practice and then make the exercise just to see if we made it right! :)

  • @RaymundoGabriel If he gave us homework we'd all copy and be cheaters 8D

  • @RaymundoGabriel None of that useless homework bullshit here, please.

  • the only tutorial that helped me figured out the mouse events, great work, man, and i guess u got a lot of girls in real life huh?

  • you are awesome sir........

  • Bucky, you MAKE learning fun. :) Thanks so much man.

  • lol *high voice*Oh i didn't enter yet...*normal voice* OH i entered

  • OH!

    I just entered!

  • Wow, this was the most fun thing I've learned so far.

    I'm having way too much fun with this. xD

    You can customize it so much. o.o

  • bucky, I spent about an hour studying oracle's api and after about another hour of experimentation I looked it up on youtube and this helped soooooo much!

  • 1 person learned to drag the mouse 

  • Is there a mouseStill event?

  • @stygiostergmail: I guess you could just use: if (! mouseMoved()) //Do this in here

  • you're my hero

  • tnxxxxxxxxxxxxxx u r a gr8 help

  • Thank you for great tutorials! :)

  • I too would like some tutorials on sockets, networking and threads which is an important concept in java..

  • Man, Your tutorials are way beyond simple help for all programmers. Thank You. No words to say "thank you" enough for all the efforts, not just for Java, but for the rest of tutorials on Yours channel. Great work. Would be a sin if we don't learn a bit from these ones.

    Greetings from Serbia

  • Coolest program thus far :D

  • hey bucky, i saw in some of your tutorials, that you have used %s, also i see now at line 26 u used %d, can you please explain what does they mean PLZ?!

    Thanks.

  • @fakeface20

    I have kind of just understood this, so this explanation might be wrong, but:

    String.format("The item %s", item)

    Means that the text is "The item " + a String object called item.

    String.format("The number is %d", num)

    The text becomes "The number is " + a (for example) int called num.

    This was written in notepad, it probably looks better there than here on youtube comments.

    Well

    @thenewboston

    Great tutorials! And it makes it even more great when you see what you are doing :)

  • sorry but you speak too fast... anyway its interesting...

  • this was fun

  • Who knew how fun a program that changes from white to red could be lol...

    Thanks once again for another awesome tutorial!

  • Comment removed

  • bucky you are simply awesome

  • @Cammie010 Because???

  • Anyone who knows how to make so that you can click on an image and then the image changes?

    would appreciate if someone spended some time answering thx.

  • You are awesome. Thank you so much.

  • great tutorials, thank-you for posting them.

  • Im stuck on a program for school, how can I make the user input characters until he inputs an upper case letter w/ JOptionPane?

    also

    Have the user input Strings until he inputs the word "Quit". The case of the letters should not matter.

  • sweet

  • HA got taired of 10 videos and you did x2 76lol

  • he is up in 81 now :D:D:D:D

    Great tutorials!!! (i'm on 56 or something :P)

  • did your mama love you?

  • I would like some tutorials on sockets, i don't understand it very well, but i would really like to learn sockets.

  • @MrKiller00224 I know how to do socket programming in C quite well, but learning it in Java would be awesome!

  • @MrKiller00224 I know how to do socket programming in C quite well, but learning it in Java would be awesome!

  • more please

  • Thanks, are you going to cover EJB and J2ee? Greatest tutorials!

  • thank you!

  • Not trying to be rude. lol...but anywayz, i personal like it, The new boston doesn't really flood the sub. list. he just runs out of mins for the video. although he is a partner, i wouldn't like to watch a 45 min. long vid. lol.....but he's alright.

  • GJ again bucky, reply please, you thinking about going far into java? e.g. TCP communication, servers clients.

  • ur clever 0.0

  • 76th. wow!

  • is this action script 3?

  • no this is actionscript 4

  • no... actionscript 4 isn't out, this is java... actionscript 4 is coming in 2010. Early 2010, as stated by adobe.

  • I know, I was joking. I was making fun of him :P

  • thank you, i was struggling understanding mouseMotionListener

  • 3rd comment ! lol

  • Happy you got first comment? You make me laugh LOL

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