|
FileMenu
1.1
FileMenu
DataSheet
Complete functionality of a usual File Menu
is packaged in one component called the FileMenu. Only two
lines of code is needed to add this functionality to any GUI application
FileMenu fm = new
FileMenu(jDesktopPane);
yourApplicationMenuBar.add(fm);

Here is a short description of the
FileMenu functionality
New : Opens a new JInternalFrame in the client area of a Multi
Document Interface (MDI) application. This event can be trapped
and further functionality can be added
Open : Opens the FileChooser dialog
box from where a user can select a file. The default behavior is to open
the file and read the contents and show them in the client area. If it
is a text file the ascii characters are read and shown. Incase the
opened file is an image or some other media file, then the user needs to
handle this event to do the needful. This event can be trapped and
further functionality can be added
Save : Saves the contents of the current/active JInternalFrame
into a file. If it is a new file, then the FileChooser dialog is opened,
prompting the user to select/specify the file name where to save the
contents. This event can be trapped and further functionality can be
added SaveAs : Opens the
FileChooser dialog. User is prompted to select/specify the file name
where the contents of the file will be saved. This event can be trapped
and further functionality can be added
RecentFiles : Opens a flip menu. The
menu items are the recently opened files. Selecting the file opens the
file in a new JInternalFrame. The number of files shown can be modified
Exit : Prompts the user to save the
modified data and then exits. If the data is not modified the
application exits without prompting to save
|
Changes in FileMenu1.1:
The trial version of FileMenu 1.1 is built
in with 'MakeLogic
Version Manager'. It creates a local folder 'MakeLogic Version
Manager' in which some property files and error logs will be created.
These files are used for real time bug reporting and other usage
parameter reporting. |
|