JButton undeploy = new JButton("Undeploy");
undeploy.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
String[] names = graphView.getOpStringNames();
JDialog dialog = new JDialog((JFrame)null, "Undeploy OperationalString", true);
UndeployPanel u = new UndeployPanel(names, dialog);
Container contentPane = dialog.getContentPane();
contentPane.add(u, BorderLayout.CENTER);
int width = 380;
int height = 225;
dialog.setSize(new Dimension(width, height));
dialog.setLocationRelativeTo(frame);
dialog.setVisible(true);
final String name = u.getSelectedOpStringName();
if(name==null)
return;
final GraphNode node = graphView.getOpStringNode(name);
final JDialog waitDialog = new WaitingDialog(frame, "Undeploying "+name+"...", 500);
org.rioproject.tools.ui.util.SwingWorker worker = new org.rioproject.tools.ui.util.SwingWorker() {