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
b) Select Run Tab
c) Add Jar File
d) Click OK

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.
Java is famous for imposing time-wasting hassles just when you start to get things going.
The fix to this one consists of the following steps:

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
b) Type Absolute Layout
c) Choose About
d) Read Text
e) Go to Web
f) Do Search
g) Find Workaround
h) Read Workaround

 

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
b) Make Java Package
c) Click Finish
d) Open File Menu
e) Search for File
f) Choose File
g) Click Filename
h) Open Package
i) Copy Files
j) Change Windows
k) Paste Files

Return to Tutorial