Results 1 to 4 of 4
  1. #1
    jiapei100 is offline Member
    Join Date
    Aug 2009
    Location
    Richmond, Canada
    Posts
    15
    Rep Power
    0

    Default Wrong with Rectangle res = new Rectangle(0,0,0,0);???

    Hi, all:

    It's weird for me to meet this problem.

    Whenever I tried to debug my code until the following line
    Java Code:
     Rectangle res = new Rectangle(0,0,0,0);
    res.x = 0;
    ...
    I met "Source not found" issue.
    How to solve this problem?

    Thank you.

    Best Regards
    JIA
    Welcome to Vision Open
    http://www.visionopen.com

  2. #2
    berkeleybross's Avatar
    berkeleybross is offline Senior Member
    Join Date
    Feb 2010
    Location
    England
    Posts
    187
    Rep Power
    5

    Default

    Please post the full error message - its hard to help without enough information!

    Have you included java.awt.Rectangle?

  3. #3
    jiapei100 is offline Member
    Join Date
    Aug 2009
    Location
    Richmond, Canada
    Posts
    15
    Rep Power
    0

    Default

    Hi, berkeleybross:

    are you really at berkeley? ^_^

    Yes, I'm pretty sure I included java.awt.Rectangle!!!
    I'm now attaching a linkage to you.
    http://www.visionopen.com/URLClassPath.ogv

    As you can see, file "URLClassPath.class" always jumped out,
    which is out of my expectation.


    Please give me a hand.
    Thank you very much.

    Best Regards
    JIA
    Last edited by jiapei100; 09-25-2010 at 04:14 AM.
    Welcome to Vision Open
    http://www.visionopen.com

  4. #4
    jiapei100 is offline Member
    Join Date
    Aug 2009
    Location
    Richmond, Canada
    Posts
    15
    Rep Power
    0

    Default

    Problem solved after removing all breakpoints.
    Could be possible that I set some breakpoints at some unexpected places.

    Cheers
    JIA
    Welcome to Vision Open
    http://www.visionopen.com

Similar Threads

  1. Construct a rectangle
    By cstokes91 in forum New To Java
    Replies: 1
    Last Post: 01-27-2010, 06:14 AM
  2. Rectangle and Colors
    By urbim in forum Java Applets
    Replies: 0
    Last Post: 07-11-2009, 03:03 PM
  3. non-rectangle JPanel
    By itaipee in forum AWT / Swing
    Replies: 4
    Last Post: 04-30-2009, 11:58 PM
  4. Rectangle Intersection
    By Gwindow in forum Java 2D
    Replies: 1
    Last Post: 04-24-2008, 03:53 PM
  5. help with rectangle class
    By darkgt in forum New To Java
    Replies: 7
    Last Post: 11-14-2007, 06:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •