java - How to rescale painted contents of JPanel -
i have window contains upper jpanel figures painted , lower jpanel figures listed in jlist list looks like:
[minature][figure.tostring()] the minature jpanel of size 10x10. contain minature of drawn figure in upper panel. mean.
class minaturepanel{ figure f;.... public void paint(graphics g){ g.drawfullsizefigure(f); g.rescalewholeinsidesofthepanel(); } }
this example paints bufferedimage , uses affinetransformop scaling.

you may want @ jscrollnavigator, examined here. lets navigate on thumbnail image of entire component, seen @ full size in adjacent scroll pane.

Comments
Post a Comment