• 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

Two Images on the Same Panel

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I load two images on the same panel? and
How I use cursors to navigate with mouse keys over different panels?
 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have complete control of what is written to the the Graphics object in the paintComponent() method. Map out where you want the images to be painted and use the drawImage() method to put the images where you want them.

For observing the mouse, you would use a MouseListener. There are probably many code examples if you search for MouseListener.

Not sure what you mean by mouse keys and cursors? There are classes and methods for changing the cursor display. Again use search to find examples.
[ June 26, 2008: Message edited by: Norm Radder ]
 
S. Shree
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey thanks again Norm, somehow you answer quite precisely without knowing the entire code structure Everything works fine now
 
reply
    Bookmark Topic Watch Topic
  • New Topic