final ReloadConsoleDialog reloadConsole = new ReloadConsoleDialog();
final JDialog dialog = new JDialog(frame);
if (servicesTable.getSelection().size() == 0)
return;
final ServiceInfo selected = servicesTable.getSelection().get(0);
reloadConsole._SERVICE.setText(selected.getName());
reloadConsole._CONFIGURATION.setModel(new DefaultComboBoxModel(new Vector(configurations)));
reloadConsole._OK_BUTTON.setAction(new AbstractAction("Reload")
{
public void actionPerformed(ActionEvent e)
{
reloadConsole._OK_BUTTON.setEnabled(false);
AsyncServiceManagerServer proxy = proxies.get(selected.getHost());
boolean result = false;
try
{
result = ((Boolean)((Future)proxy.yajswReloadConsole(selected.getName(), (String) reloadConsole._CONFIGURATION.getSelectedItem())).get(10, TimeUnit.SECONDS)).booleanValue();
}
catch (Exception e1)
{
// TODO Auto-generated catch block
e1.printStackTrace();