Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set a component's GraphicsConfiguration or ImageCapabilities so it can be accelerated?

 
C Wang
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried creating a blank JFrame and getGraphicsConfiguration().getImageCapabilities().isAccelerated() returns false

Is there a way to set a component's GraphicsConfiguration or ImageCapablities?


---
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() only had length of 1

GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0].getConfigurations() had a length of 6

I looped through them and checked for each of their getImageCapabilities().isAccelerated(), each one returned false

really confused
---

added "-Dsun.java2d.opengl=true" to the run parameters and getConfigurations() only had a length of 1, and isAccelerated() returned true

how can I do this in an applet though??
 
Campbell Ritchie
Sheriff
Pie
Posts: 48966
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We usually discuss that sort of thing on the Swing forum. Moving.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic