Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 What is the java code for an applet to make a picture? Would love your creations
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
tristan




PostPosted: Mon Jun 14, 2010 10:38 am   Post subject: What is the java code for an applet to make a picture? Would love your creations

Sponsor
Sponsor
Sponsor
sponsor
USEC_OFFICER




PostPosted: Mon Jun 14, 2010 11:56 am   Post subject: RE:What is the java code for an applet to make a picture? Would love your creations

It would be nice if you explained more in your post.
andrew.




PostPosted: Mon Jun 14, 2010 6:14 pm   Post subject: RE:What is the java code for an applet to make a picture? Would love your creations

Well, an Applet in Java has a method called paint. Basically, that method is automatically called once during the initialization (I believe). You can use the Graphics library to draw different things like shapes, lines, and text.

Applet Documentation
Graphics Documentation

There are many many examples on Google.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: