home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap28 / lst28_2.txt < prev   
Text File  |  1996-03-15  |  230b  |  14 lines

  1. String str = GetURLStringFromUser();
  2.  
  3. try
  4. {
  5.     URL url = new URL(str);
  6.     AppletContext context = getAppletContext();
  7.     context.showDocument(url);
  8. }
  9. catch (MalformedURLException e)
  10. {
  11.     DisplayErrorMessage();
  12. }
  13.  
  14.