private ItemListModel mainModel;
public ULCComponent getULCComponent(ULCViewerFactory factory) {
ULCBoxPane panel = new ULCBoxPane(1, 0);
Insets insets = new Insets(2, 2, 2, 2);
GridBagConstraints c1 = new GridBagConstraints(0, 0, 3, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, insets, 0, 0);
GridBagConstraints bc1 = new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
GridBagConstraints bc2 = new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
GridBagConstraints bc3 = new GridBagConstraints(2, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
try {
ULCComponent table = factory.createUlcViewer(mainModel.getArray(), false).getULCComponent(factory);
panel.add(table, c1);
ULCComponent editButton = factory.createUlcViewer(mainModel.getViewableChild(ItemListModel.EDIT_ITEM_COMMAND), true).getULCComponent(factory);