tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 
 Tools and Libs > Ostermiller Utilities > Open Multiple Browsers

Open Multiple Browsers 

Ostermiller Java Utilities contain various components such as CSV parsing, Base64 Encoding, MD5 digest, String and Exec Helper classes. This requires the library ostermillerutils-1.08.01.jar to be in classpath. The following example shows opening multiple browsers using Browser.displayURLs() API.

File Name  :  
com/bethecoder/tutorials/ostermillerutils/OpenDefaultBrowserTest2.java 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
   
package com.bethecoder.tutorials.ostermillerutils;

import java.io.IOException;
import java.util.Arrays;

import com.Ostermiller.util.Browser;

public class OpenDefaultBrowserTest2 {

  /**
   @param args
   @throws IOException 
   */
  public static void main(String[] argsthrows IOException {

    //Initialize the command to start the browser
    Browser.init();
    
    //The command for opening the browser
    System.out.println("Command : " + Arrays.toString(Browser.defaultCommands()));
    
    //Open URLs in multiple Browsers
    Browser.displayURLs(new String [] { 
        "http://bethecoder.com",
        "http://bethecoder.com/applications/tutorials/barcodes.html",
        "http://bethecoder.com/applications/tutorials/spring-jdbc.html"
    });
  }

}
   


                    Print

   



Books Recommendation

 
 
bl  br