home *** CD-ROM | disk | FTP | other *** search
- public boolean action(Event evt, Object arg)
- {
- try
- GetURL();
- catch (MalformedURLException e)
- {
- badURL = true;
- repaint();
- }
-
- return true;
- }
-
- protected void GetURL() throws MalformedURLException
- {
- String str = textField.getText();
- URL url = new URL(str);
- AppletContext context = getAppletContext();
- context.showDocument(url);
- }
-
-