Gradient problems in Java

后端 未结 5 793
滥情空心
滥情空心 2021-01-04 05:52

In my program I wanted to have a translucent white to transparent gradient on my JFrame to overlay a yellow background. This works fine and it needs to be a white to transpa

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 05:57

    My guess is that it's about the 'graphics pipeline' that's being used on the different computers.

    Java has several different pipelines, here is some information about them.

    On my computer I can use the X11 pipeline, or the OpenGL pipeline. With the X11 pipeline the darkness occurs; on OpenGL, it doesn't.

    On Windows you can choose from 3 different pipelines, and even then (looking at the link above), there can be differences.

    I can't immediately imagine what's the configuration your school has, and why it's different, but you can try to investigate.

    You might want to file this difference as a bug.

提交回复
热议问题