Skip to content

Commit

Permalink
topcat: initialise keyboard focus in stack for query windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtaylor authored and mmpcn committed Nov 27, 2014
1 parent 62813d3 commit 03815c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions topcat/src/main/uk/ac/starlink/topcat/QueryWindow.java
Expand Up @@ -111,6 +111,11 @@ public void actionPerformed( ActionEvent evt ) {
contentBox.add( auxControls, BorderLayout.CENTER );
getMainArea().add( iconBox, BorderLayout.WEST );
getMainArea().add( contentBox, BorderLayout.CENTER );

/* Fix it so that the components in the stack have the focus
* when the window is displayed. */
pack();
stack.requestFocusInWindow();
}

/**
Expand Down

0 comments on commit 03815c7

Please sign in to comment.