Write a syntax of JFileChooser class.
Answers
Answer:
Explanation:
JFileChooser class is a component which provides the user to choose a file.
Declaration for javax.swing.JFileChooser class is as follows :-
public class JFileChooser
extends JComponent
implements Accessible
Fields for javax.swing.JFileChooser class −
static String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
static String ACCESSORY_CHANGED_PROPERTY
static String APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY
static String APPROVE_BUTTON_TEXT_CHANGED_PROPERTY
static String APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY
static int APPROVE_OPTION
static String APPROVE_SELECTION
static int CANCEL_OPTION
static String CANCEL_SELECTION
static String CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY
static String CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
static int CUSTOM_DIALOG
static String DIALOG_TITLE_CHANGED_PROPERTY
static String DIALOG_TYPE_CHANGED_PROPERTY
static int DIRECTORIES_ONLY
static String DIRECTORY_CHANGED_PROPERTY
static int ERROR_OPTION
static String FILE_FILTER_CHANGED_PROPERTY
static String FILE_HIDING_CHANGED_PROPERTY
static String FILE_SELECTION_MODE_CHANGED_PROPERTY
static String FILE_SYSTEM_VIEW_CHANGED_PROPERTY
static String FILE_VIEW_CHANGED_PROPERTY
static int FILES_AND_DIRECTORIES
static int FILES_ONLY
static String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY
static int OPEN_DIALOG
static int SAVE_DIALOG
static String SELECTED_FILE_CHANGED_PROPERTY
static String SELECTED_FILES_CHANGED_PROPERTY