• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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");

*********************************************************
note!!!
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.

Thanks
******************************************************
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Regards,
Manfred.
 
reply
    Bookmark Topic Watch Topic
  • New Topic