public void actionPerformed ( ActionEvent e )
{
// Apply gradient values through SettingsManager
// Notice that component will be automatically updated due to external settings changes!
final GradientData blackAndWhite = new GradientData ();
blackAndWhite.addGradientColorData ( new GradientColorData ( 0f, Color.BLACK ) );
blackAndWhite.addGradientColorData ( new GradientColorData ( 1f, Color.WHITE ) );
SettingsManager.set ( "GradientColorChooserExample.gradientData", blackAndWhite );
}
} );
final WebButtonGroup buttonGroup = new WebButtonGroup ( colored, blackAndWhite );