Is it possible to embed a browser within a desktop java application that can handle session data and possibly cookies? It should be able to handle a login to eBay and paypal websites.
Asked
Active
Viewed 700 times
0
-
Possible duplicate http://stackoverflow.com/questions/48249/is-there-a-way-to-embed-a-browser-in-java – Reimeus Aug 01 '12 at 20:40
-
I saw that question but there was no mention of ability to login to websites. – Vitaliy Isikov Aug 01 '12 at 20:43
-
@VitaliyIsikov Surely *one* of the solutions posted can act as a full-featured UA (e.g. supports cookies) .. – Aug 01 '12 at 20:46
-
If the goal is searching, selecting and buying items why not use eBay APIs instead? http://developer.ebay.com/common/api/ – orangepips Aug 01 '12 at 20:57
2 Answers
1
I would suggest using the SWT Browser class. It uses an available native browser, and it supports everything you should need.

xthexder
- 1,555
- 10
- 22
1
Java FX 2.xx has WebView which is an embedded browser. If you are working in a Swing environment, you can still embed that Java FX 2.x component in a Swing panel.
ps: I don't know for sure if it can handle login to eBay and Paypal but I would have thought it does because it is built on WebKit engine.