i am corrently making a desktop application which store the username and passwords from different account.
now,i want to know that how can i fill this username and password in particular web site when i click on button.

i have written the code for opening the web browser,when i click on button it opens the browser.
Process p=Runtime.getRunTime().exec(command);
i am able to fill the username field e.g in gmail,but it doesnt fill passwrod field.
please....help me...!!

ehm .. what exactly has this got to do with Java?
if it is for a gmail account, and you want it in a desktop application: what do you still need the browser for?