java: How to add Transparent Gradient Background to JFrame
问题 java: I want to use the Gradient style Transparent Background to JFrame. On the top the transparency should be 100% but when going down it should go on decreasing and at the bottom it should be 20% I know i can use the images already having such effect but i want to provide the themes facility and allowing user to use their favorite images but allow transparency at the run time. 回答1: Sun added support for translucent backgrounds to java in 6u10 but it is not formally described in the API. In