How do I put the JGoodies FormLayout into debug mode?

By Alvin J. Alexander, devdaily.com

When creating a builder, instead of doing this:

PanelBuilder builder = new PanelBuilder(layout);

do this instead:

// debug mode
PanelBuilder builder = new PanelBuilder(layout,new FormDebugPanel());

This enables what I think is a terrific debug feature, showing red lines around whatever grid structure you've created.


devdaily logo