Results 1 to 3 of 3
  1. #1
    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Default JApplet and constructor

    Hi,

    I can see that a JApplet object can only have a constructor without parameters.
    Is the reason is because the parameter values are recovered from the html file from the name and value contents in the PARAM mark For example : <param name = "month", value ="april"> and, after in the applet object with the getParameter method?

    Other question: if we can use the constructor or the init method to initialise graphic composants of a JApplet objet , why is it better ( that's what i have learned) to use the init method rather than the constructor?
    Is the getParameter method can not be used in the default a contrusctor?

    Thanks a lot for your help.

    Best regards.

    curious_programmer
    Last edited by curious_programmer; 05-08-2012 at 06:10 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: JApplet and constructor

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: JApplet and constructor

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 5
    Last Post: 12-14-2011, 02:47 PM
  2. JApplet on MAC
    By ld_pvl in forum Java Applets
    Replies: 0
    Last Post: 08-23-2009, 02:40 PM
  3. JFrame to JApplet or JApplet to JApplet
    By ramesh.8189 in forum AWT / Swing
    Replies: 13
    Last Post: 02-08-2009, 07:14 AM
  4. Replies: 0
    Last Post: 12-19-2007, 10:10 AM
  5. Replies: 0
    Last Post: 12-19-2007, 10:01 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
  •