Available in the LEADTOOLS Imaging toolkit. |
Frame... example for Visual J++
This example sets the control's frame properties. For example purposes, both inner and outer bands are turned on. However, normal three-dimensional effects use inner bands or outer bands, but not both.
LEAD1.setAutoRepaint( false );
LEAD1.setFrameThickness( 2 );
LEAD1.setFrameColor( new Color( 0, 0, 0 ) );
LEAD1.setFrameInnerStyle( (short) LTOCXU.EfxFrameInnerStyleConstants.EFX_INNERSTYLE_INSET );
LEAD1.setFrameOuterStyle( (short) LTOCXU.EfxFrameOuterStyleConstants.EFX_OUTERSTYLE_RAISED );
LEAD1.setFrameInnerHiliteColor( new Color( 255, 255, 0 ) ); // Yellow
LEAD1.setFrameInnerShadowColor( new Color( 128, 128, 128 ) ); // Dark Gray
LEAD1.setFrameOuterHiliteColor( new Color( 255, 0, 0 ) ); // Red
LEAD1.setFrameOuterShadowColor( new Color( 192, 192, 192 ) ); // Light Gray
LEAD1.setFrameInnerThickness( 3 );
LEAD1.setFrameOuterThickness( 3 );
LEAD1.setAutoRepaint( true );