As simple as is - it is just a Swing panel with Gradient See below example the result of using KGradientPanel
-
Open Netbeans Create your Swing application, head to Palette right click and select Palette Manager select Add From Jar and browse to the location of the downloaded jar file. Select and proceed, select KGradientPanel component proceed to select the category and hit Finish.
-
Open your JFrame drag KGradientPanel to it and set the following properties in the properties window.
kEndColor(Color) Gets or sets the button’s gradient end color to the right.
kGradientFocus(int) Gets or sets the location to which the gradient should focus (accepts negative value)
kStartcolor(Color) Gets or sets the button’s gradient end color to the left.
You can play around gradientFocus value to achieve a much better effect.