JDialog dialog =
new JDialog((JFrame)null,
"ServiceElement Admin",
true);
Container contentPane = dialog.getContentPane();
ServiceElementPanel sElemPanel =
new ServiceElementPanel(dialog);
GraphNode[] nodes =
GraphUtil.getChildren(g,
node.getTableNode());
ArrayList<ServiceBeanInstance> list =
new ArrayList<ServiceBeanInstance>();
for(GraphNode node : nodes) {
if(node.getInstance()!=null)
list.add(node.getInstance());
}
try {
OperationalStringManager mgr =
Util.getOperationalStringManager(
node.getProvisionMonitor(),
node.getOpStringName());
sElemPanel.showServiceElement(
node.getServiceElement(),
list.toArray(new ServiceBeanInstance[list.size()]),
mgr);
contentPane.add(sElemPanel, BorderLayout.CENTER);