Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4906974

Universal Browser Launch

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • core-libs
    • x86
    • windows_xp



      Name: gm110360 Date: 08/14/2003


      A DESCRIPTION OF THE REQUEST :
      If for nothing else besides directing users to your home page or support page on the web, almost all applications need (or could use) the ability to open a web page. Unfortunately, this currently requires a fair amount of platform specific code to implement in Java. It would be great if Java included a universal mechanism to launch the user's default web browser.

      For example:
         System.browser.open("http://spam.abuse.net/overview/spambad.shtml");

      An error code could be returned if the platform did not support the feature or if Java was unable to locate a browser.

      JUSTIFICATION :
      Such a universal browser launch feature would make it easier to write cross-platform pure Java applications.

      Please see:
         http://forum.java.sun.com/thread.jsp?forum=57&thread=314979
         http://forum.java.sun.com/thread.jsp?forum=57&thread=247320
         http://forum.java.sun.com/thread.jsp?forum=57&thread=254067

      ---------- BEGIN SOURCE ----------
      public class BroswerLaunch {
         public static void main(String[] argv) {
            System.browser.open("http://spam.abuse.net/overview/spambad.shtml");
            }
         }

      ---------- END SOURCE ----------
      (Incident Review ID: 189088)
      ======================================================================

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: