public void requestFocus() {
// Nothing gets focus
}
public void setConnected(final ServerConnectionEvent evt) {
final ServerToolTip tooltip = new ServerToolTip(evt.getServerInfo());
Runnable job = new Runnable() {
@Override
public void run() {
serverCaption.setIcon(ServerRenderer.getIconForConnectionState(evt));
serverLabel.setText(evt.getServerName());
serverLabel.setToolTipText(tooltip.get());
userLabel.setText(evt.getCredentials().getUser());
}
};
UiUtils.runOnEventThread(job);
}