kkaa - 2010-06-23

After reviewing the InfoNode code more, I found a solution, or hack, for this issue. When the new View is created and visible set to true, try the code below. I found that I must have two invokeLater calls. One was not enough to postpone the focus request.

SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
//request focus to item here.
comp.requestFocusInWindow();
}
});
}
});

Please note: I am writing this code by memory. There might be a few typos, but it should provide a general idea.