How to get visible size of jpanel

Printable View