Explain how to load an image from the net into my applet

Explain how to load an image from the net into my applet

private ImageIcon image;
inside the init method
image = new ImageIcon(new URL(http://www.xyz.gif));
Explain how to load an image from a file in a java application
How to load an image from a file in a java application - ImageIcon icon = createImageIcon('images/xyz.gif', 'text string');...
Difference between a Window and a Frame
Difference between a Window and a Frame - A frame is a resizable, movable window with title bar and close button. Usually it contains Panels...
Explain how to draw text over a background image
How to draw text over a background image - BufferedImage img = ImageIO.read(new File('xxx')); // xxx is the path...
Post your comment