Added: 2 years ago
From: MrJavaHelp
Views: 34,369
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (40)

Sign In or Sign Up now to post a comment!
  • hey! I ve seen many of your java gui tutorials. They have helped me. I ve been looking all over the internet to find how can i make a JButton be clicked only once and with no luck. The setEnabled method doesnt work for me.. Is there anything else?

  • you make me think i am in aeroplane...jesus,i can give you my microphone...

  • Great!!!!!! repaint() is what I've been looking for all over the internet. I hate my CS teacher. She could have taught us this easy method instead of all the jumbo mambos. Theory oriented people sucks!!! Thank you again. Plz keep up the good work.

  • when ever i try to run this a frame just shows up and its blank

  • Thanks, this really helped me out with a Checkers Game Project I'm creating.

  • how do you make a button open another class for you?

  • @ultravanz have you found the answer(How to make a button another class file

    

  • @tuhinbhatt1 Simply go to the actionListener of the button and load up the new class there. You can create a new object from the other class file that will load the constructor of the new class, which will then load all the methods on the other class. You can also create a new frame in the actionListener, simply by JFrame frame = new JFrame("frame"); and you can also close the current frame by thisFrame.dispose();

  • Great vid.. good job

  • I'm having problems with the draw object = new draw();

  • @thewhiteone102

    I know your comment was from 5 months ago, but hopefully I can help someone else.

    The "shapes.java" and the "draw.java" have to be in the same package for that to work.

  • I'm pretty sure paintComponent() will be envoked as soon as the frame displays on the screen, so there is no need to have a drawing() method to explicitly call repaint(); The only time you want a repaint(); is if you are changing the shape or coordinates in the paintComponent() method, and the you want to "repaint" the new shape opr coordinates.

  • awesome dude make some more java swing tutorial

  • I think you make really good tutorials, but you should think about getting yourself a new microfone.

  • ya man you gotta work on ur voice

  • That is an unnecessary piece of method chaining you have there.

  • Heh, thanks for this... )

  • Java explained!!!!!

  • This code is so wrong its not funny

  • @ScrewAttackChina I know, right?!

  • Hi its cool to have tutorials to learn how to create shapes in java.

  • It's all great but do somthing with the voice dude!

  • Thanks alot man! good tutorial

  • You saved my life! HAHA Didn't know it was this simple. Thank you!

  • Thank you, I finally understand how to use the paintComponent() method.

  • thankyou this is exactly what i was looking for *;D !!!

  • Wasted 5 minutes of my life! I thought CUSTOM SHAPES >.<

  • thanks for the video, very helpful

  • is the swing like the CSS of JAVA?

  • Ahhhh thank you! You rock!!!

  • Thanks - that was very helpful.

  • yo im a having a problem. my graphics window opens but my blue rectangle isn't there. and i've done it exactly like u. maybe its because im using jGrasp to create my programs rather than watever u use? anyways if u think u know wats wrong, a response would be greatly appreciated! lol thx

  • Thanks I've had alot of problems understanding this! At last I got my explaination!

  • thanks ....pls upload more

  • really helpfull video. I have a question although. Is it possible to have a JPanel and add the 'object' on that instead of the frame?

  • omg, 3 comments for 2.125k views.. goes too show how much people don't show appreciation for these vid's, great vid man i needed too know how to make gui's and stuff like this 5/5 ^^

  • thanks.,.,love your videos,.,.so comprehensive.,.,

  • Kkkkeeeeeeeyyyy

  • sweet thanx a million very good.

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