Results 1 to 3 of 3

Thread: GRect help

  1. #1
    bokchoi is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default GRect help

    hey guys,

    i need help creating a boolean that becomes true when mousePressed is within the last 10% of a GRect(right portion). how do you check if a click e.getX(),e.getY() was within the last 10%(right portion) of a GRect?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default

    Depends. What's a GRect, to begin with? No such class in the JDK.

    db

  3. #3
    bokchoi is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Moving GRect: Bad Code or Bug?
    By adamg106 in forum New To Java
    Replies: 11
    Last Post: 05-02-2010, 12:35 AM

Posting Permissions

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