Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applets on a multi-screen setup  RSS feed

Lloyd Shove
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!