J/Direct Call Builder is a graphical tool for automating the process of calling the Win32 API from within Java programs.
With the J/Direct Call Builder you can:
This dialog box allows you to select the API text file that you wish to use with the J/Direct Call Builder. The default option is the WIN32.TXT file, which allows you to import Win32 API methods, structures, and constants.
Note The J/Direct Call Builder only provides API listings for the GDI32, Kernel32, User32, Shell32, Advapi32, Spoolss and Winmm Win32 API Libraries.
A non-editable text box that displays the class that the J/Direct Call Builder will add code to. The default value for the text box is a class called Win32. If this class does not exist when you select an API to import, you will be prompted to create the class in a Java source file called Win32.java. To choose a different class in which to add your API imports, click the button located next to the Target text box. This displays the Select Class dialog box, which allows you to select a class from your project or the Clipboard. Choosing the Clipboard as the target for class imports allows you to paste the import into any class you choose. Since structures are defined as classes in Java, when a structure is selected from the API Elements list, the structure's class is created as a nested class of the class selected in the Target text box.
This contains a list of the Win32 API elements found in the text file specified in the Source text box. This list can be filtered using the Method, Structs, or Constants check boxes located at the top of the window. You can get help on any Win32 API element by right-clicking on the API element and choosing the Display API Help menu item from the shortcut menu. To add a selected API element to your project you can either select the element in the list and then click the Copy to Target button, or double-click the element in the list. This will add the necessary code to the class file specified in the Target text box. The Find text box located above the list allows you to type a string of text to search for a specific element in the list. Multiple API elements can be selected from the list by holding down the CTRL key and clicking on the list items that you want to add. A display area below the list shows the code that will be added for the currently selected API elements. You can determine the type of API element based on the associated icon. The list below illustrates each icon that can be displayed in the list and its meaning.
Icon | Description |
Method | |
Constant | |
Struct (Structure) |
When this option is selected, any methods contained in the currently selected API are displayed in the API Elements list. The default value for this option is true.
When this option is selected, any structures contained in the currently selected API are displayed in the API Elements list. The default value for this option is true.
When this option is selected, any constants contained in the currently selected API are displayed in the API Elements list. The default value for this option is true.
This copies the specified API elements to the class specified in the Target text box.