One pitfall you're going to run into is the use of BufferedReader. That class is no good for reading binary files (such as PDF), it's only good for reading plain ASCII text files. So you'll want to use FileInputStream instead and read the bytes into a buffer array instead of reading line-by-line.
As for displaying the PDF contents in a JPanel, Java doesn't have a built-in way of doing that. You'll probably want to look around for the right library for your purposes:
https://stackoverflow.com/questions/...xisting-jpanel