[virtualcommons-svn] commit/foraging: alllee: scheduling focus request via SwingUtilities to see if
Status: Beta
Brought to you by:
alllee
From: Bitbucket <com...@bi...> - 2011-10-16 09:50:25
|
1 new changeset in foraging: http://bitbucket.org/virtualcommons/foraging/changeset/258b07814895/ changeset: 258b07814895 user: alllee date: 2011-10-16 11:50:23 summary: scheduling focus request via SwingUtilities to see if that helps with the focus issue. affected #: 1 file (-1 bytes) --- a/src/main/java/edu/asu/commons/foraging/ui/GameWindow2D.java Sun Oct 16 02:43:06 2011 -0700 +++ b/src/main/java/edu/asu/commons/foraging/ui/GameWindow2D.java Sun Oct 16 02:50:23 2011 -0700 @@ -434,7 +434,11 @@ showPanel(currentCardPanel); } }); - mainPanel.requestFocusInWindow(); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + mainPanel.requestFocusInWindow(); + } + }); } /** Repository URL: https://bitbucket.org/virtualcommons/foraging/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |