first of all I wanna make sure that you know QTP is for functional testing .
how to automate your application test with QTP
1- u need to install the suitable QTP add-ins
such as : ActiveX, Java, .Net , in your case it is Java add-ins
2- try the scenario you want to test before start testing by following the scenario steps manually
2- start the QTP before the Application
3- start the application
4- press the QTP record button
and repeat the steps you just practiced manually on your application
*** remember to end on the first step you started your script with , this will give you the ability to iterate your test.
hope this will get you busy