This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

confused with start, init and others

 
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!