A
A
Alexander Smolin2015-09-26 13:40:04
Java
Alexander Smolin, 2015-09-26 13:40:04

How to get rid of darkness in Swing-JavaFX (JFXPanel)?

When using JFXPanel, I noticed such a not very error, not a bug, but most likely a misunderstanding of the operation of this component. The problem is that the background of my JFXFrames (Jframe + JFXPanel) when using my favorite transparency from FX turns out like this.

Explanation:
.root is the main window. Let's make it white and translucent.
The program is shown below on a white background.
578909d1443256778
(according to my logic, since I made my panel have a white background, then it should not be visible on a white background)
If you do rgb (255, 255, 255) there is no "gray".

It also looks good in white rounded windows
578936d1443261998
. I think I missed something somewhere.
Code
Prompt.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question