And much more object‑oriented, too. The zoom is a feature of the panel, so let the panel do the calculations for you.
Christian Klugesherz wrote:. . . Much easiest :-)
Christian Klugesherz wrote:Too Greenhorn to address this level of approach.
However, I will keep that behind of my mind :-)
Is there a reason why not call "dispose()" in paintComponent() ?