So, I'm making a platformer at the moment, and have a few development tools made so that other people ca do some of the work for me (Like write dialogue, cutscenes, make maps, and put together sound-packs). One of the things that I've been asked to do is add a function that will allow somebody to zoom in and out of maps in the map-maker. Maps are rendered by loading a large number of JLabels containing ImageIcons into a JInternalFrame. Each JLabel is 40*40 pixels in size, and the ImageIcons are either .gif or .png . Three JLabels occupy any given single space; one for foreground, one for middle ground, one for background. Each JLabel has a MouseListener added to it.
Is there any way of resizing all labels and shrinking their respective icons?