How to capture elements on java application

Hi,
is there any settings to be enabled for java applications to capture elements. i have added java extension but while indicating(using get text or get full text) it was highlighting entire screen. so that i am unable to capture elements like text or numbers etc,…
any suggestions guys…