| Appendix One: Deploying Applets That Use Absolute Layouts | |||
| by Van Warren MS CS, AE © 2005 | |||
Preamble Sometimes you will right click a layout in the Palette window, Form Editor, or Inspector window and request Absolute Layout and NetBeans GUI will not comply. To fix this issue set the run time properties as follows:
The following JAR file must be loaded into the Project Properties for the NetBeans Form Designer to work properly:
|
4 context switches This required: a) Select Properties |
||
Adding Absolute Layout Class Files For Deployment We have to include
the class files for absolute layout with our build in order for our deployed
HTML applet files to work. We start by asking for help... first in the NetBeans IDE:
We type in absolute layout and take note of the pathname:
We go to the web:
and get the real workaround:
which we implement as follows. |
Figuring out what was actually wrong and what to do about it took four hours. 8 context switches This required: a) Select Help Contents
|
||
Implementing the AbsoluteLayout Patch First make a java package to hold the extra classes:
which results in the creation of the package that will be deployed with our class:
Now we still have to populate that package with the correct files. So we have to open the jar file that comes with NetBeans, and copy and paste the classes into the directory/package we just created.
|
Implementing the fix once understood took 4 minutes and 19 seconds. This syndrome is typical an it is Java's biggest weakness. It is essential that developer's not have to suffer prolonged head-scratching mode for any utility programming. 11 context switches This required: a) Choose Menu Item |
||
| Return to Tutorial |