Convert this VB code to Java?

Printable View