tags:

views:

54

answers:

1

How can I transfer data, for example, login and password, from my Java program into browsers (Chrome or IE), when they open some page? For example, I have data of my Facebook account in DB in client-sided Java-application. It's necessary to send this info to my browser, so that the welcome page of Facebook wouldn't appear, that is the page of the account appears immediately. And if it's possible, when user fills in some form, the Java-application check that info, and if there is no such records in DB, suggest to create new one.

A: 

If your Java program is a desktop application or applet, the browse() method of java.awt.Desktop accepts a URI that can include such information, depending on the scheme. Java SE 6 is required.

trashgod