DefaultFormBuilder has been deprecated in version of JGoodies 1.9.0. The suggested alternative is FormBuilder.
Old code using DefaultFormBuilder:
builder.appendSeparator("Autoset");
builder.append(description);
builder.nextLine();
New code using FormBuilder:
builder.addSeparator("Autoset").xy(1, 1);
builder.add(description).xy(1, 3);
Note that the positions of the added elements have to be explicitly given. Is this really necessary? Is there any equivalent of append()
(without coordinates) and nextLine()
?