Results 1 to 2 of 2
  1. #1
    jzyling is offline Member
    Join Date
    Sep 2012
    Posts
    4
    Rep Power
    0

    Question What is the instance name of GCanvas automatically created in GraphicsProgram

    Hi,

    If I create a instance of GraphicsProgram class like:

    public class graph extends GraphicsProgram{....}

    GraphicsProgram will create a instance of GCanvas class automatically which fills the entire program window, so what is the name of this instance name?

    Thank you.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default Re: What is the instance name of GCanvas automatically created in GraphicsProgram

    Since neither GraphicProgram nor GCanvas are part of the standard JDK, you would be better off asking wherever you got those classes. However, instances don't have names, so you would also need to formulate a better question.

    Additionally, learn to follow the Java coding conventions. Class names should start with an uppercase letter.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Replies: 1
    Last Post: 04-21-2012, 06:03 PM
  2. Add GCanvas to JButton?
    By SiX in forum New To Java
    Replies: 3
    Last Post: 07-21-2011, 02:59 AM
  3. Replies: 0
    Last Post: 04-29-2010, 12:21 AM
  4. Find instance that owns instance?
    By Addez in forum New To Java
    Replies: 2
    Last Post: 04-04-2010, 03:36 PM
  5. Replies: 7
    Last Post: 04-21-2009, 06:00 AM

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
  •