🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12497

HyperlinkEvent.EventType.ENTERED doesn't work in appletviewer!?

#12497
From: -=(CyBerCo)=-
Date: Tue, 15 Dec 1998 00:00
23 lines
1504 bytes
Why does the third statement in the following code work and the first two
don't. I'm at a loss here....

----------------------------------------------------------------------------
------------------
public void hyperlinkUpdate(HyperlinkEvent e) {
        if (e.getEventType() == HyperlinkEvent.EventType.ENTERED) {
            pane = (JEditorPane) e.getSource();
            System.out.println("Entered Hyperlink");
        }
        if (e.getEventType() == HyperlinkEvent.EventType.EXITED) {
            pane = (JEditorPane) e.getSource();
            pane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
            System.out.println("Exited Hyperlink");
        }
        if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            pane = (JEditorPane) e.getSource();
            fileViewport = JiniApplet.scrollPaneRight.getViewport();
            showPage(e);
        }
}
----------------------------------------------------------------------------
------------------
Technical Details
Message-ID: <7561o9$ok17@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,795b1815a226bfa5,start
X-Google-Attributes: gid111d45,public
From: "-=(CyBerCo)=-" <berco@tcw2.ppsw.rug.nl>
Subject: HyperlinkEvent.EventType.ENTERED doesn't work in appletviewer!?
Date: 1998/12/15
Message-ID: <7561o9$ok17@forums.borland.com>
X-Deja-AN: 422535623
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing