emBrowser Sample Code

View our Product Catalog

emBrowser Demo

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]

 

[MarkelSoft Home       -  iTunes and eBay software for everyone] [Buy or Try Products] [Product Tours] [Product Support] [Product Awards] [Blog] [MarkelSoft Radio] [iTunes Feeds] [Music News Feeds] [Services] [News] [Advertising] [Site Links] [Site Search] [About Us] [Contact Us]

Copyright 2007 @ MarkelSoft, Inc.