• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

icePDF: command next and previous page with key

 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!!!

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

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you tried the community forum at the icepdf site?
(more likely to get icepdf users there)
 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes!!! no answer...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic