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.

image

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

image


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -