Questions about bluetooth

hi,
I'm trying to develop a JAVA program that make mobile phones as a PC controller via Bluetooth, but I have no idea about how to send number keys' information to PC, or how can PC get the commends of mobile phones.
I had try a lot codes but still in the trouble.
Is there any tutorial website or any successful sample code, please?