Help with a rectangle, will be easy to solve please help

created a rectangle using following code:
Rectangle puck = new Rectangle();
now I want a rectangle on my JPanel, anyone know some code to help?
Cheers

tried that code and got this error
cannot resolve symbol: method add (java.awt.Rectangle)in class javax.swing.JPanel
already had 1st 2 lines of code, 3rd line is what gets the error....

Similar Messages

Maybe you are looking for

  • How do I sync my iphone to a new computer without losing folders?

    I've found several "techniques" that attempt to solve this problem, but none of them work 100%. http://www.justinmontgomery.com/sync-ios-device-to-a-new-computer-you-are-screwe d I upgraded from a 3 year old HP laptop to a new MacBook Pro. I transfer

  • How to use the select statement in for loop

    Hi All, my question is can we use select statement in for loop like as follows . for key in select key from one_table. when i am using this am getting an error like Found select invalid i identifier how to make use of select statement in for loop ple

  • The Save as PDF option in the Printer dialog is not supported.

    My client is asking me to save a separations PDF file. But whenever I save it to PDF, a this message pops out: The Save as PDF option in the Printer dialog is not supported. I'm using InDesign cs5 and Adobe PDF 9.0. I'm on Mac OS X 10.6.6.

  • Why is the Discussion on the Moto X Update Locked?????

    Here is the thread I am referring to: https://community.verizonwireless.com/thread/806362 Below is the message I was trying to send to the community leaders and VZW customer support reps who commented on this thread, but I'm not being followed by the

  • Aperture 3.4.3 did not solve license number re-entry issue

    Even after installing Aperture 3.4.3 and after deleting Aperture preference file, I am asked to reenter Aperture serial numbers (Aperture upgrade 3 and original Aperture 1 serial numbers) on every first launch of Aperture 3.4.3 after boot of my iMac