The fix done for JDK-8214253 have caused issues in JTree behaviour. If the JTree node is selected, its background and text color become white and nothing is readable.
Root Cause: The changes done in gtk3_paint_flat_box for JDK-8214253 have caused this issue. The issue can be fixed by making the changes specific to TOOL_TIP. We dont want to write the code present in transform_details for other widgets like JTree cells.