Jump to content
We've recently updated our Privacy Statement, available here ×

addHyperlinkListener in the 6.4.3 library


LAndrew.xp

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You'll have to extend JRViewer and add the listener to JRViewerPanel.  Like this (using an anonymous class, but you can define a named class as well):

        new net.sf.jasperreports.swing.JRViewer(...) {            @Override            protected JRViewerPanel createViewerPanel() {                JRViewerPanel panel = super.createViewerPanel();                panel.addHyperlinkListener(listener);                return panel;            }        };[/code]

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...