The javah produces C header files and C source files from a Java class that are needed to implement native methods. The javah -jni is used to generate a C header file containing the function prototype for the native method implementation. The javah tool is provided with JDK SDK release. This tool is not integrated with eclipse IDE. We can configure IDE to run javah as an external tool. The post describes how it can be done.
Date class in Flex provides date and time information. It retrieves values reflecting Coordinated Universal Time (UTC) or local time determined by the host environment of the machine in which flash player is executing. DateFormatter class helps you to format and parse dates for any locale. We will create a Timer instance that will dispatch an event once per second (every 1000 milliseconds). The start() method starts the timer. After every one second, Date() constructor will be called again which returns a Date object containing the current date and time and label values are updated.
The entry demonstrates a PostgreSQL database function for listing all databases in the current server along with their sizes. The function PG_DATABASE_SIZE in PostgreSQL is used to calculate the size of each database in disk. It returns size of database in bytes and this value in bytes is passed through another PostgreSQL function PG_SIZE_PRETTY which returns the result in KB/MB/GB/TB.
Here we will consider an application that allows data transfer from two popular data driven controls in Flex – Datagrid and List. Datagrid and List are powerful controls in Flex to display a list of items. The application demonstrated here allows for multiple selection of items and transfer selected items between two datagrids or lists.