SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
getAppFrame().getStatusBar().message("Connected to " + dev.getName());
DeviceFrame frame = new DeviceFrame(DroidAtScreenApplication.this, dev);
deviceTableModel.add(frame);
fireDeviceConnected(dev);
frame.setVisible(!getSettings().isHideEmulators() || !dev.isEmulator());
updateDeviceFramePositionsOnScreen(frame);
}
});
}