hey guys.. I have written a code in java to display input pdf on a swing panel. but the problem is it is showing only 1st page or page that user enters number for. i have added Next and Previous Buttons on same parent Jframe. i need Next button to show next page of pdf and Prev button to show previous button. I am not able to get My actionlistener to work. can anyone help me out ?