Utilities API provides various ready-to-use elements to easily handle:
- the display of "info", "warn", "error", "confirm" and "input value" dialogue boxes
- the management of application's resources, such as localized string messages and images
- the management of loggers using file and UI console
- the management of files: "open" and "save" dialogue boxes to choose file or directory
- the display of "hand", "wait" and "arrow" mouse cursors
- the application branding and splash screen
All screenshots below are shown for MacOS X system, but keep in ming that
Generic Application Framework is available for Windows and Linux systems.
Using common dialogues boxes
Utilities API enables you to display "info", "warn" and "error" dialogue boxes in a very convenient way, as follows:
1
2
3
4
5
6
7
8
|
Resulting screenshots show the results on MacOS X, but similar dialogue boxes are available on Windows and Linux systems. |
It is worth noting that application icon displayed on the above dialogue boxes comes from the application branding, defined when you setup your application, as follows:
In a similar way, it is quite easy to display and use "confirm" and "input value"dialogue boxes:
1
2
3
4
5
6
|
Using mouse cursors
Utilities API provides a direct way to chang mouse cursors, as needed during application life-cycle:
Using resources bundles
Utilities API enables the use of localized resources:
Using loggers
Utilities API provides a lightweight and ready-to-use logger framework. The idea is not to provide a new logger framework. Instead, Utilities API proposes a direct way to use standard Java Logging API using a very line of codes.
Now, we can use the logger framework. Wherever you are located in your code, there is no need to setup a particular logger per class. Simply call one of the following methods to log messages:
Then, log messages can be viewed with the UI Logger Console provided with Utilities API:
Console logger without source of log message |
Console logger with source of log message |
File logger is also available and can be configured quite easily:
Using file API
Utilities API provides a few methods to handle system-dependent dialogue boxes to chose file and directory for open and save actions.
Additional API is available through EZFileManager
class to handle user directory, default path as well as file extensions.
Using application branding
Utilities API provides a few methods to define application branding:
Application branding values are used to setup application's frame title and icon, as well as default "About" dialogue box:
Considering MacOS X system, the application icon is also used to display an appropriate image within the Dock while application is up and running.
Splash screen is also easy to display and use while application is starting up: