How to save a scrollable JPanel as a jpeg image (not as a snapshot)
===

How is it possible to store a `JPanel` as a *jpeg* image the solutions I could search takes a snapshot of the display, this does not capture all the contents of the `JPanel` as part of it is hidden. Is there any way of getting the entire image in *jpeg*. 