Skip to content

k33ptoo/KGradientPanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KGradientPanel

As simple as is - it is just a Swing panel with Gradient See below example the result of using KGradientPanel

Example

How to use 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.

Properties

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.

Download

KGradienPanel Jar

Sample Project

KGradientPanel Example

Releases

No releases published

Packages

No packages published

Languages