HeapBoxItem maxPermgen = new HeapBoxItem("maxPermgen", "Max Permgen Size", false);
form.setFields(nameItem, heapItem, maxHeapItem, permgen, maxPermgen);
final FormHelpPanel helpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = new ModelNode();
address.add("host", Console.MODULES.getCurrentSelectedHost().getName());
address.add("jvm", "*");
return address;
}
}, form
);
layout.add(helpPanel.asWidget());
layout.add(form.asWidget());
heapItem.setValue("64m");
maxHeapItem.setValue("256m");