Package org.timomt

Class ImageLabGUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ImageLabGUI extends JFrame
ImageLabGui: JFrame this application is built on.
See Also:
  • Constructor Details

    • ImageLabGUI

      public ImageLabGUI()
      ImageLabGUI: default constructor.
  • Method Details

    • setImage

      public void setImage(BufferedImage image)
      setImage: Replaces the current image and updates the UI.
      Parameters:
      image - the new image
    • getImage

      public BufferedImage getImage()
      getImage
      Returns:
      this.image - the current image.
    • saveImage

      public boolean saveImage(File f)
      saveImage
      Parameters:
      f - the file to be saved to
      Returns:
      true if the process was successful (currently only in JPG format).
    • simpleMessageDialog

      public static void simpleMessageDialog(String title, String message, String buttonText)
      simpleMessageDialog a JDialog preset for consistent message dialogs.
      Parameters:
      title - the title of the window.
      message - the message to be displayed.
      buttonText - the text of the closing button.