Feeds:
Posts
Comments

BookFabrik – Capture your digital life.

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.

Continue Reading »

While using JavaDoc features, you may want to set author name (@author JavaDoc tag) to a value other than system username. The default behavior can be altered by modifying the eclipse.ini file which resides under eclipse root directory.

The eclipse.ini is a text file containing command-line options that are added to the command line when Eclipse is started up. Important points are 1. Each option and each argument to an option must be on its own line. 2. All lines after -vmargs are passed as arguments to the JVM.

Continue Reading »

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.

Continue Reading »

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.

Continue Reading »

This post shows how to close current browser window from Flex. Here Java Script code is used to close the browser window. If the window was not initially opened by JavaScript code, Microsoft Internet Explorer will display a warning message “The webpage you are viewing is trying to close the window” to the user and with Firefox, you will have to change the user preference value for dom.allow_scripts_to_close_windows. For this, type in “about:config” in Firefox address bar to get about:config entries. Locate entry dom.allow_scripts_to_close_windows and change its values to true.

Continue Reading »

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.

Continue Reading »