This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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
Posts: 48652
56
  • 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