wood burning stoves*
The moose likes Applets and the fly likes urgency!!! In Japplet, how to make...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "urgency!!! In Japplet, how to make......" Watch "urgency!!! In Japplet, how to make......" New topic

urgency!!! In Japplet, how to make......

liang sun
Ranch Hand

Joined: May 12, 2001
Posts: 51
urgency!!! In Japplet, how to make Image as JApplet background image,hope u see completely.

I have get Image Object as blow,then how to do?
Image image=getImage(url,"hill.jpg");

I hope swing GUI on Japplet can still be seen after loading Image
I found if using code as below
/* g.drawImage(0,0,image,this) */
I will only see Image.It means all GUI will disappear but image。
so u will don't tell me answer is It.

Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Liang,
The easiest way that I have found to perform what you want is to use a new JPanel created just to support the background image. Then add your components to it and add that to the JApplet. Sounds weird but the code below might give you an idea of what I mean.

subject: urgency!!! In Japplet, how to make......
Similar Threads
java .security .AccessControlException
Need help on animation using GUI Builder.
Applet and XML Doc through a browser
Making a dialer for Dial-up connection using java.comm api
JApplet + JPanel + image.jpg