This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Applets and the fly likes applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applets" Watch "applets" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
how to add images on panel in borderlayout using applets
Herbert Maosa
Ranch Hand

Joined: May 03, 2000
Posts: 289
I think adding images to the panel will not make a difference whether you are using an applet or application, and whatever the layout.
Basically you will need to have a drawing surface, the best candidate of which is the canvas. So, for example you can have the canvas added to the center of your border layout.The canvas has the paint method, so inside this paint method you can invoke the drawImage() method of the Graphics class to draw the image that you want.
I wonder if this helps.
I agree. Here's the link:
subject: applets
Similar Threads
Problem with methods to do graphics.
database connection from applets
RunTime over the web
Warning Message - An Applet Would Like To Print
Problems updating gui in JApplet