rana_b      2003/01/20 07:21:45

  Modified:    ftpserver/src/java/org/apache/avalon/ftpserver/gui
                        FtpAboutPanel.java
  Log:
  method name changed
  
  Revision  Changes    Path
  1.4       +13 -11    
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/FtpAboutPanel.java
  
  Index: FtpAboutPanel.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/gui/FtpAboutPanel.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FtpAboutPanel.java        20 May 2002 10:20:17 -0000      1.3
  +++ FtpAboutPanel.java        20 Jan 2003 15:21:44 -0000      1.4
  @@ -79,21 +79,22 @@
        * Handle user mouse click.
        */
       public void hyperlinkUpdate(HyperlinkEvent e) {
  -        try {
  -            if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
  -                JEditorPane pane = (JEditorPane) e.getSource();
  -                if (e instanceof HTMLFrameHyperlinkEvent) {
  -                    HTMLFrameHyperlinkEvent  evt = (HTMLFrameHyperlinkEvent)e;
  -                    HTMLDocument doc = (HTMLDocument)pane.getDocument();
  -                    doc.processHTMLFrameHyperlinkEvent(evt);
  -                }
  -                else {
  +        if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
  +            JEditorPane pane = (JEditorPane) e.getSource();
  +            if (e instanceof HTMLFrameHyperlinkEvent) {
  +                HTMLFrameHyperlinkEvent  evt = (HTMLFrameHyperlinkEvent)e;
  +                HTMLDocument doc = (HTMLDocument)pane.getDocument();
  +                doc.processHTMLFrameHyperlinkEvent(evt);
  +            }
  +            else {
  +                try {
                       pane.setPage(e.getURL());
                   }
  +                catch(Throwable t) {
  +                    GuiUtils.showWarningMessage(getCommonHandler().getTopFrame(), 
"Cannot load " + e.getURL());
  +                }
               }
           }
  -        catch(Throwable th) {
  -        }
       }
   
       /**
  @@ -109,6 +110,7 @@
               }
           }
           catch(IOException ex) {
  +            GuiUtils.showErrorMessage(getCommonHandler().getTopFrame(), 
ex.getMessage());
           }
           finally {
               IoUtils.close(is);
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to