Skip to main content

JFrame transparent when using Windows Magnifier

3 replies [Last post]
bskaarup
Offline
Joined: 2003-06-17
Points: 0

When I run the following using Update N build 14 (and earlier) and use Windows Magnifier to look at it, the JFrame becomes transparent to Windows Magnifier. If I run the same code using Java 6 Update 5 the JFrame is opaque as it should be.

<br />
public class Test {<br />
  public static void main(String[] args) {<br />
    JFrame f = new JFrame(System.getProperty("java.version"));<br />
    f.setSize(300,100);<br />
    f.setVisible(true);<br />
  }<br />
}<br />

The titlebar and border is visible to Windows Magnifier, but the rest is transparent to Windows Magnifier.
If I use an AWT Frame instead of a JFrame, the Frame is opaque as it should be in Windows Magnifier.
I use Windows Vista 32 bit Service Pack 1

Why is this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
trembovetski
Offline
Joined: 2003-12-31
Points: 0

> Why is this?

Because Vista is buggy?

Java is a Direct3D application from Vista's point of view, and apparently its
magnifier doesn't work well with such applications.

Dmitri

bskaarup
Offline
Joined: 2003-06-17
Points: 0

OK, Thanks :-)

I'll just set -Dsun.java2d.d3d=false when I need to magnify (or find another magnifier)

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Yes, disabling the d3d pipeline should help.

Just to confirm that this is not Java's issue, I have ran Direct3D demos from
the Microsoft DirectX SDK, they have the same problem.

Dmitri