voyent
Adding a MouseClick Event to the displayed PDF document  XML
Forum Index -> ICEpdf General
Author Message
Kelechi

Joined: 08/Jun/2017 17:12:54
Messages: 4
Offline


Please friends, I want to add a mouse event right click event on the displayed pdf document, so that when the user right clicks, I can perform an action. Pls how do I carry out this action?
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


The only way to allow for a context menu on a page view is to modify the source for Viewer RI and rebuild the icepdf-viewer.jar. You'll need to download the source code bundle of ICEpdf and be familiar with Apache Ant.

Once you have your development environment setup you can add a context menu the Swing component org.icepdf.ri.common.views.PageViewComponentImpl . I simple tutorial can be found here http://www.java2s.com/Code/Java/Swing-JFC/AsimpleexampleofJPopupMenu.htm
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team