Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2016
    Posts
    47
    Rep Power
    0

    Default Where can I find the circle class in the java.awt package

    I am working in BlueJay and following along in a text book. The 2nd attached screenshot shows that the awt package and all of its classes and the awt.geom package and all of its classes are being imported.

    Then the 'circle' class is used.

    To help my understanding of all these files and how they are related, I opened Eclipse Neon and tried searching under the JRE System library (1st screenshot) to locate the circle class. Under the rt.jar archive file, I saw a few cases of awt and awt.geom, but I didn't see the circle class inside any of them.

    Can anybody tell me which folder and subfolders I can find the circle class in?
    Attached Thumbnails Attached Thumbnails Where can I find the circle class in the java.awt package-eclipse-screenshot.png   Where can I find the circle class in the java.awt package-bluejay-screenshot.png  

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Where can I find the circle class in the java.awt package

    There is no circle class. From the image it appears you are supposed to create one. However, there is an Ellipse class that can be used to draw a circle. Just set the width and height the same.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: Where can I find the circle class in the java.awt package

    Take a look at the API doc for the Java SE packages: Java Platform SE 8
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. javac can't Find class in same package
    By Peter B in forum New To Java
    Replies: 5
    Last Post: 07-22-2013, 06:47 PM
  2. Replies: 1
    Last Post: 03-04-2010, 04:07 PM
  3. java program help. find the radius of a circle
    By megironi in forum New To Java
    Replies: 1
    Last Post: 03-27-2009, 07:09 AM
  4. Replies: 3
    Last Post: 05-01-2008, 08:30 AM
  5. couldn't find the package java.lang
    By katie in forum New To Java
    Replies: 2
    Last Post: 08-04-2007, 05:04 PM

Tags for this Thread

Posting Permissions

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