• Post Reply Bookmark Topic Watch Topic
  • New Topic

confused with start, init and others  RSS feed

 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a certain order that you have to put your methods(?) in when designing an applet? I mean, does it have to start with
init()
start()
stop()
destroy()
paint()
....?
I can't get my applets to work and I'm wondering if that may have anything to do with it. Thanks.
 
Tanveer Rameez
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
while writing the code , you don't have to maintain any sequence. The applets invoke the method-init(),start(0,paint(),stop(0,destroy-in that order, irrespective of the order you write them. I think you have forgotten to make the applet public (if your applet refuse to load), or you forgot to make the overriden methods public like public void init() etc.
if they are ok, then post a sample program to verify
bye
Tanveer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!