Javascript  
 
  ScriptJava  
 
  Perl  
 
  PHP  
 
  ROR  
 
  ask us  
 

 

Applications
  1. Getting started
  2. Definitions
  3. First program
  4. Characters and Strings
  5. Object and methods
  6. Arrays and Circles
  7. Exceptions
  8. The main method
  9. Reading
  10. Writing file
  11. Vectors
  12. Stacks
  13. Map The Dictionary
  14. Lists
  15. Linked lists
  16. Collection
  17. Interfaces
  18. Scanner
  19. StringTokenizer
  20. Generics
  21. JDBC
  22. DataBase Queries
  23. JSP, The main step

Graphics

Applets
  1. Regards
  2. One Picture
  3. Calculator
  4. Random pictures
  5. Bouncing picture

Swings
  1. Buttons listeners
  2. TextFields
  3. Swing Example

JavaBeans
  1. The first step
  2. Example

Search a word:
   



© The scientific sentence. 2010

Applet one picture
Picture applet              The colored to comment.

I. Introduction



II. Program 

import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Image;

public class OnePicture extends Applet {
Image image;

public void init() {
    image = getImage(getDocumentBase(), "Wave.jpg");
  }

public void paint(Graphics g) {
    g.drawImage(image, 50, 50, this);
  }
}


III. The related applet

 To view the applet using JDK viewer:
C:\Java>appletviewer OnePicture.html
Here is the applet: Or write this HTML code and call it on a browser: <HTML> <HEAD> <TITLE>One Picture</TITLE> </HEAD> <BODY> <applet code=OnePicture.class width="300" height="200"> </applet> </BODY> </HTML> One picture applet

  
Google
Web
ScientificSentence
 




chimie labs
|
scientific sentence
|
java
|
php
|
green cat
|
contact
|


© Scientificsentence 2009. All rights reserved.