When you say
Component c = your component
What librarys do i need to import....
Also is C the variable name you are initialising??
So i could change it to Component crosshairCursor = your component?
Also whats your component mean....
Sorry for being thick, but a good reply hard wired