About JPad Pro

JPad Pro™ is an Integrated Development Environment (IDE) for Java™ and JavaScript that runs on Windows ® 95 and Windows NT platforms.

Key Features:

Java Support

The Java support in JPad Pro is based upon Sun's Java Development Kit (JDK). JDK itself is just a collection of command line tools and related files. JPad Pro provides a set of commands that make it easy to use the JDK tools. For example, to compile a Java class you just have to choose the compile command in JPad Pro. If you use the command line tool "javac.exe" from the JDK then you need to know how to set up the environment for running JDK javac and will also need to know what parameters to pass to javac.

JPad Pro also makes it easy to locate syntax errors generated by JDK tools. All you need to do to locate the source where a syntax error occurred is to double click on a error message that includes a line number. You can also turn on JPad Pro's line number option or use the "Go To…" command if you want to locate the error your self. The following example shows a syntax error in the "system.out.flush()" statement. In this case the word "system" should be spelled "System".

JPad Pro also makes it easy to insert existing or your own templates into a source file. In the JPad Pro directory you will find a "Templates" folder. Any text (.txt) files put in this folder will be displayed in the Templates tree view located in the Project panel. Double clicking on a template file will insert the contents of the file at the current insertion location in your active view. The next example shows the result of inserting MyApplet template into a source file.


Project Manager

The project manager makes it easy for you to manage a project. Once you have a project defined you can use the Build commands to compile a Java application. This is a lot easier than using the compile command if you have a large package to compile. The project manager also provides a fast way for you to locate information in your project. Double-clicking on an item in a project view will bring up the appropriate source (see below).

The project manager also makes it easy to create a new class at the correct location in the package hierarchy. If a project is defined then when you create a new java file, the project manager will by up the following dialo. Just choose a package from the drop-down list and enter in a class name. JPad Pro will then create a .java file in the correct location.

JavaScript Support

For JavaScript, the key feature is the Syntax Check tool. It's this tool that you will want to use to reduce browser generated syntax and runtime errors. The Syntax Check tool lets you detect the following types of errors:

The following figure shows a screen shot of JPad Pro without the project manager. The upper panel is where you edit HTML and Java files. The bottom panel is the output panel which is where output is displayed from JPad Pro tools. This example shows a JavaScript enabled HTML page with a JavaScript error highlighted. The error report was generated by the HTML/JavaScript Syntax Check tool.

Using the Syntax Check Function

The Syntax Check tool simulates the actions taken by a browser when it loads and displays a page. First the page is parsed along with the JavaScript to build the Object Model including user defined HTML objects, JavaScript functions, and JavaScript scriptlets (event handlers). After each script is parsed the immediate statements defined in a script are evaluated (global variables defined in the immediate statements are created at this time). Finally, after the page is "loaded", the "onLoad", other, and "onUnload" events are evaluated in that order.

It's during the first phase that the Syntax Check function checks the page for HTML and JavaScript for syntax errors. Valid Object Model references are also checked in the first phase while evaluating any immediate statements. Out of order execution problems will also be detected while evaluating the immediate statements. During the final phase, the Syntax Check function checks for valid references to the Object Model as it evaluates each event.

The Syntax Check tool is based on a custom JavaScript parser with a full JavaScript Object Model. The Object Model includes the following standard objects:

Each object includes all appropriate properties and methods. See a JavaScript reference manual for a full description of the object model.


Copyright (c) 1996, Modelworks Software. All rights reserved.

JPad and JPad Pro are a trademarks of ModelWorks Software. Java is a trademark of Sun Microsystems, Inc. Windows is a registered trademark of Microsoft Corporation.