Computer Science, asked by sarthak8254, 11 months ago

how to import images in applet​

Answers

Answered by firdausbegum43
1

Explanation:

The Applet class provides a method called getImage(), which loads an image and automatically creates an instance of the Image class for you. To use it, all you have to do is import the java. awt. Image class into your Java program, and then give getImage the URL of the image you want to load.

Similar questions