Class ImageGridPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ImageGridPanel
extends JPanel
Displays images in a grid pattern
See Also:
Serialized Form
  • Constructor Details

    • ImageGridPanel

      public ImageGridPanel​(int numRows, int numCols)
    • ImageGridPanel

      public ImageGridPanel​(int numRows, int numCols, BufferedImage... images)
  • Method Details

    • autoSetPreferredSize

      public void autoSetPreferredSize()
    • computePreferredSize

      public Dimension computePreferredSize()
    • paintComponent

      public void paintComponent​(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • setScaleToFit

      public void setScaleToFit​(boolean scaleToFit)
    • setImage

      public void setImage​(int row, int col, BufferedImage image)
    • getImage

      public BufferedImage getImage​(int row, int col)
    • setImages

      public void setImages​(BufferedImage... images)