I use this library: Java escp-simple
Then I want to display PrintPreviewPane like the one in the doc. But I was unsuccessful and got the following error message.