Results 1 to 6 of 6
  1. #1
    twillders is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default adding code to constructor

    Hi all

    could someone explain what code is needed to set the colour of an object to the constructor im close to banging my head against a wall


    thanks

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Uhm, setBackground?

  3. #3
    twillders is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default

    no say like a frog setting the colour of it to something other than green

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Uhm, rollInPaint()? Why don't you show some code already, nobody can give you any kind of help this way.

  5. #5
    ron2794 is offline Member
    Join Date
    Dec 2010
    Posts
    38
    Rep Power
    0

    Default

    objects are not physical quantities , how they can have colors ?

  6. #6
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    I hate simply quoting a previous post as a reply to a new one, but.......

    Quote Originally Posted by masijade View Post
    Why don't you show some code already, nobody can give you any kind of help this way.

Similar Threads

  1. Code for adding search function in an application
    By Avdhut in forum Threads and Synchronization
    Replies: 5
    Last Post: 03-03-2009, 11:15 AM
  2. Help with this code, overload the constructor
    By zoe in forum New To Java
    Replies: 12
    Last Post: 11-03-2008, 03:55 AM
  3. Replies: 0
    Last Post: 03-29-2008, 01:38 PM
  4. Replies: 0
    Last Post: 12-19-2007, 10:10 AM
  5. Replies: 0
    Last Post: 09-26-2007, 09:29 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
  •