Jan 2009

Netbeans UI builder switching from Java 6 to Java 5 or the other way around

The project I'm in are using Swing UI builder to do our dialogs, but we are forced to use Java 5. This means that we are using extra libraries as we use the group layout manager. When creating a new dialog I managed to get started using Java 6. After noticing this I tried to go back to using Java 5, but the generated files from netbeans insisted of using the javax.swing libraries and not the compatibility libraries. After searching the web I found no solution, but I managed to find it on my own.

The generator mode is coded in the .form file that tags along the dialog - if you want to change mode after creation you must edit it in an editor outside of netbeans:

  <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/>

Value 1 means that it uses java 6 - value 2 means that it uses the libraries compatible with Java 5.
|

Google trouble.

I'm in the habit of using google to find stuff. Today I got the following when I used google. "Considered harmful for your computer". I guess someone had a rough day at work today...

Pasted Graphic
|