Tuesday, September 2, 2014

Altered colors in Swing application.
































Hi.
































I am developing a kiosk application, using Java Swing as GUI API. I am testing the application with the display to be used, a framebuffer USB display, tied to a x86 board running TinyCore Linux (Kernel 3.8.10). Now, when the OS desktop is shown, all the picture is "normal":
































Altered colors in Swing application.-2014-09-02-19.11.42.jpg
































But when the Java application is running, the color is altered, as if one of the RGB components was missing (The image is showing a JForm with a JLabel whose Icon image is the girl that you can see in the picture):
































Altered colors in Swing application.-2014-09-02-17.37.51.jpg
































This is how the original background image should look like:
































Altered colors in Swing application.-ndice.jpg
































I have to say that when a "conventional" (HDMI) display is used, the image is shown well. The same as if I execute the app with X forwarding.
































I am wondering if somebody has a possible explanation or a tip to fix this.
































Thanks.































































No comments:

Post a Comment