4
I thought this question fits SuperUser more than StackOverflow because it's not about actual Java programming, though programmers might be more likely to encounter the problem. Anyway, let me start of with some stats before I ask the actual question:
Laptop:
- Windows 7 x32
- Screen resolution 1024 x 768; Nvidia GeForce Go 6200
- Connected to desktop via ad-hoc wireless network
- Access internet via desktop
Desktop:
- Windows 7 x64
- Screen resolution 1920 x 1080
- Connected to laptop via ad-hoc wireless network
- Access internet via cable modem
I'm connecting to my laptop via Remote Desktop from my desktop to take advantage of the large screen. I'm doing programming on my laptop (for portability reasons). Everything else runs smooth and fast over Remote Desktop as both computers are connected directly over the ad-hoc wireless.
The only problem is this: Java Swing apps don't display the GUI properly. I acquired a Java Swing application and I'm debugging it in Eclipse. Here's what I got when I ran the app:
Apparently there doesn't seem to be anything wrong with the GUI application I'm debugging, because the Java Control Panel exhibits the same problem.
I've searched high and low in Google about this; the closest I came to a solution is this. But sadly, the use of -Dsun.java2d.nodraw=true
has no effect at all.
This only happens over Remote Desktop. I have tried locally and the GUI apps display properly. This isn't a dealbreaker for me as I can stop using Remote Desktop when developing Java Swing apps. However, I would like to know if anyone has encountered this and found any solution.
PS: All software involved (Eclipse, Java JRE, etc.) are latest versions.
What settings are you using under display, experience, etc.. under options (Remote Desktop Connection)? – Rob – 2012-02-12T13:26:25.733
Thanks for the edit Journeyman Geek. @Mike: Full Screen, Highest Quality (32-bit), Audio transfer off, Device/Resource sharing fully off, High-speed broadband, Font smoothing, Desktop composition, Visual styles. (That's all) – ADTC – 2012-02-13T03:56:05.720
I haven't found a solution to rectify this, but upon further testing, I found that Java GUI apps work properly when I set the color depth to anything lower than "Highest Quality (32 bit)" (The available options are 24 bit, 16 bit and 15 bit.) Java has this problem only when I set the color depth to 32 bit. Could someone using Remote Desktop test this please to determine if it's a bug in Java VM? – ADTC – 2012-02-14T09:51:41.013