It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes icePDF: command next and previous page with key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "icePDF: command next and previous page with key" Watch "icePDF: command next and previous page with key" New topic
Author

icePDF: command next and previous page with key

paul beppe
Ranch Hand

Joined: Aug 09, 2012
Posts: 86
hi everybody...

i'm using icepdf litle time....

i want add 2 comand with key in icepdf: "next page" and "previous page"

for open file pdf i have write:


it's ok here....i want add 2 camand with key example:

if (event.getKeyCode() == KeyEvent.VK_SHIFT) {
...nextPage
}
if (event.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
...previous Page
}

how to do...???

help me please!!!
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

Don't use a KeyListener. Swing was designed to use Key Bindings.

edit Are you sure you want to use theShift key for navigation? I'd find that very non-standard. Why not use the arrow keys with Ctrl/Command pressed?


luck, db
There are no new questions, but there may be new answers.
paul beppe
Ranch Hand

Joined: Aug 09, 2012
Posts: 86
hi!!!

my problem is not the choice of command... but how to run next and previous....

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
have you tried the community forum at the icepdf site?
(more likely to get icepdf users there)
paul beppe
Ranch Hand

Joined: Aug 09, 2012
Posts: 86
yes!!! no answer...
 
Don't get me started about those stupid light bulbs.
 
subject: icePDF: command next and previous page with key