Class WebbSimpleImage

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class WebbSimpleImage extends JComponent
A simple image component that can be used to display an image
See Also:
  • Constructor Details

    • WebbSimpleImage

      public WebbSimpleImage(BufferedImage image, int width, int height)
      Creates a new image component
      Parameters:
      image - The image to display
      width - The width of the component
      height - The height of the component
  • Method Details

    • paintComponent

      protected void paintComponent(Graphics g)
      Paints the image
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - The graphics object