Available in the LEADTOOLS Imaging toolkit. |
Click and MouseIcon example for Visual J++
This example demonstrates the Click event and the MouseIcon property.
private void LEAD1_click(Object source, Event e)
{
// This example, on a click event, toggles between the default
// mouse pointer and a loaded icon.
if( LEAD1.getMousePointer() == 0 )
{
LEAD1.setMouseIcon( new Icon( "f:\\vb\\icons\\arrows\\point04.ico" ) );
LEAD1.setMousePointer( (short) 99 );
}
else
LEAD1.setMousePointer( (short) 0 );
}