in Java please
The following requirements must be satisfied by this assignment:
1) Add a menu to the application with two menu options, i.e., File and View.
2) The File menu will have an Exit menu option that will close the application.
3) The View menu will have two different menu items, File Information and Directory Information.
4) The File Information scene will pop the File Chooser dialog and retrieve information from the File Instance and will display the following with Text Fields being disabled:
a) A Label and Text field for the filename.
b) A Label and Text field for the Parent.
c) A Label and Text field for the Path.
d) A Label and Text field for the Absolute Path.
e) A Label and Text field for the Canonical Path.
f) A Label and two Radio Buttons (Yes and No) for 'Is File'.
g) A Label and two Radio Buttons (Yes and No) for 'Is Directory''.
h) A Label and two Radio Buttons (Yes and No) for 'Is Hidden'.
5. The Directory Information scene will contain:
a) A Label and Text Field that will allow entry of a directory with a Button for reading the directory.
b) Provide an error message if the directory doesn't exist in a Label field.
c) Display a TableView of the file information. You will need to create an intermediate FileInfo class and create a List of the FileInfo objects in order to accomplish this task.