Audizine - An Automotive Enthusiast Community

Results 1 to 5 of 5

Thread: java help again

  1. #1
    Veteran Member Four Rings
    Join Date
    Feb 11 2004
    AZ Member #
    85
    Location
    Seattle/Seoul

    java help again

    Guest-only advertisement. Register or Log In now!
    trying to create a shape using

    the public BlobWorld (int x, int y, int width, int height, java.awt.Color c, boolean fill)

    then tried running it:
    BlobWorld b = new BlobWorld(10,20,30,40,blue,true)

    but i get an error saying that "blue" is an undefined class...

    i'd appreciate any help...

    thanks

    peace
    DBC ownz joo!! <- Wow what year is that from??

  2. #2
    Veteran Member Four Rings audidood's Avatar
    Join Date
    Feb 11 2004
    AZ Member #
    77
    My Garage
    56 Oval, 2017 Tacoma
    Location
    san diego, ca

    blue needs to be in quotes, unless it's a variable.
    2004.5 USP A4 1.8t with mild mods.
    1956 VW Bug with major mods.

  3. #3
    Veteran Member Four Rings audidood's Avatar
    Join Date
    Feb 11 2004
    AZ Member #
    77
    My Garage
    56 Oval, 2017 Tacoma
    Location
    san diego, ca

    but then again, when you put it in quotes it becomes a String.
    2004.5 USP A4 1.8t with mild mods.
    1956 VW Bug with major mods.

  4. #4
    Veteran Member Four Rings
    Join Date
    Feb 11 2004
    AZ Member #
    85
    Location
    Seattle/Seoul

    thats whut i thought too...

    but figured it out... when i was calling it, ad to put Color.BLUE...

    peace
    DBC ownz joo!! <- Wow what year is that from??

  5. #5
    Veteran Member Four Rings audidood's Avatar
    Join Date
    Feb 11 2004
    AZ Member #
    77
    My Garage
    56 Oval, 2017 Tacoma
    Location
    san diego, ca

    ah... yeah, that would do it too.
    2004.5 USP A4 1.8t with mild mods.
    1956 VW Bug with major mods.

Bookmarks

Posting Permissions

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


    © 2001-2025 Audizine, Audizine.com, and Driverzines.com
    Audizine is an independently owned and operated automotive enthusiast community and news website.
    Audi and the Audi logo(s) are copyright/trademark Audi AG. Audizine is not endorsed by or affiliated with Audi AG.