|
The emBrowser Component comes with a sample application. Use the sample application to get yourself up to-speed quickly and/or javadoc for custom solutions.
- View sample Java code (com.markelsoft.emBrowserApp.java)
- Use runsample.bat to run the sample application
- Sample code snippet:
|
import com.markelsoft.emBrowser.*;
// create a browser with toolbar, address, and status areas emBrowser browser = new emBrowser(“http://www.ebay.com”); add(browser, BorderLayout.CENTER);
// get the html for the page String html = browser.getHtml();
// get the value for the form “mainForm” element “name” String value = browser.getHtmlFormItem(“mainForm”, “name”);
|
|
- To compile an application include the following jars in the classpath:
- emBrowser.jar
- BrowserTools.jar
- jawin.jar
- To run an application include the following jars in the classpath:
- emBrowser.jar
- BrowserTools.jar
- jawin.jar
- see runsample.bat for an example
- AND jawin.dll in the application directory or system library path
Sample Java application using emBrowser component: [other examples of emBrowser: Speed Bid for eBay and FlashgameZ]

|