AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

applet

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
skrich
Guest





PostPosted: Sat Feb 25, 2006 5:12 pm    Post subject: applet Reply with quote



public void paint(Graphics gr){
if(prod[0]<=prod[1]){
gr.drawString("il cappuccino è preso con maggior
frequenza",5,60);
}
}

guardare questo pezzetto di codice applet semplicissimo.Come faccio per
farlo andare a capo però prima che inizi a scrivere il
cappuccino.....?tipo la system.out.println.
\n non funzia e deo usare la gr.drawString.
Una curiosità:
finora per le applet abbiamo fatto solo i metodi init,start,graphics.
Se i calcoli le eseguo tutti nell'init,o nel graphics,oppure tutto nel
graphics,oppure tutto nel start teoricamente andrebbe tutto.Perchè allora
suddividere in più metodi?(si chiamano metodi no,init,start e graphics??)
grazie

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse (AT) newsland (DOT) it
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.