• 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

Applet graphics and multiple screens

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I've got some applets that run on a multi screen (3 different graphics cards) display.

I get vastly different performance dependant upon where the applets are displayed, if they are on the primary display they run at about 5% cpu and on either of the others they eat up about 16-20% cpu!!

I'm guessing I need to change the graphics configuration they are doing their drawing to. I know with a JFrame I can specify the Graphics configuration to use on its instantiation but what can I do with an applet!!??

I've been trying to create a buffered image from the (hopefully) correct graphicsconfiguration, writing to this and then writing to the Graphics object within paintComponent() but this isn't helping as the Graphics object I'm passed still uses the default graphics configuration (The default primary one and not the one I want the display to be on!!).

I am desperate for a workaround for this. Am I in the right neck of the woods or barking up the wrong tree?


any help appreciated
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic