requestFocus() -> requestFocusInWindow()

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3450 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-03-31 17:26:01 +00:00
parent d2325761ff
commit 31a1eb685a
7 changed files with 13 additions and 13 deletions
@@ -117,7 +117,7 @@ public class ChatPanel
addAncestorListener(new AncestorAdapter() {
public void ancestorAdded (AncestorEvent e) {
if (_focus) {
_entry.requestFocus();
_entry.requestFocusInWindow();
}
}
});
@@ -291,7 +291,7 @@ public class ChatPanel
_entry.setEnabled(true);
_send.setEnabled(true);
if (_focus) {
_entry.requestFocus();
_entry.requestFocusInWindow();
}
}
@@ -1,5 +1,5 @@
//
// $Id: LogonPanel.java,v 1.11 2004/08/27 02:12:49 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -131,14 +131,14 @@ public class LogonPanel extends JPanel
_ctx.getClient().addClientObserver(this);
// start with focus in the username field
_username.requestFocus();
_username.requestFocusInWindow();
}
public void actionPerformed (ActionEvent e)
{
String cmd = e.getActionCommand();
if (cmd.equals("skipToPassword")) {
_password.requestFocus();
_password.requestFocusInWindow();
} else if (cmd.equals("logon")) {
logon();