I am trying to get a .png file to display as the background for my applet.
What would be the best way to do this.
Printable View
I am trying to get a .png file to display as the background for my applet.
What would be the best way to do this.
If you are using swing (JApplet) you override the paintComponent(Graphics g) method and draw the image there. If you set the applet's layoutmanager to null, you can then add components on top of the image if you first invoke the components' setBounds -method for positioning them.