File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
How to set a component's GraphicsConfiguration or ImageCapabilities so it can be accelerated?
Joined: Jun 05, 2009
Jun 05, 2009 02:53:48
I tried creating a blank
and getGraphicsConfiguration().getImageCapabilities().isAccelerated() returns false
Is there a way to set a component's
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() only had length of 1
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().getConfigurations() had a length of 6
I looped through them and checked for each of their getImageCapabilities().isAccelerated(), each one returned false
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
Joined: Oct 13, 2005
Jun 05, 2009 03:02:46
We usually discuss that sort of thing on the Swing forum. Moving.
subject: How to set a component's GraphicsConfiguration or ImageCapabilities so it can be accelerated?
Mouse events on transparent Swing components
Centre window on leftmost screen with multiple monitors
facing problem while creating a Road/Pathway using Java3D
StringTokenizer and null fields
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015