Class FileSavePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FileSavePanel extends JPanel
The FileSavePanel displays a file name for saving and allows the user to choose a new file name. The functionality is similar to a file chooser, but the panel is much smaller and is designed to be combined in a panel with other controls, such as save options and formats.
Since:
3.2.2
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • FileSavePanel

      public FileSavePanel()
      Creates a new save panel with default file chooser.
    • FileSavePanel

      public FileSavePanel(JFileChooser fileChooser)
      Creates a new save panel.
      Parameters:
      fileChooser - the file chooser to use when the user wants to select a file, or null to create a default one.
  • Method Details

    • getSaveFile

      public File getSaveFile()
      Gets the current save file.
      Returns:
      the currently displayed save file.
    • setSaveFile

      public void setSaveFile(File file)
      Sets the save file.
      Parameters:
      file - the new file to set as the save file.