The popup must be contained within the frame's content pane borders otherwise it can't/won't get focus. If you resize the main frame so the popup pops up within the content pane, it will work. It's...
Type: Posts; User: dlorde
The popup must be contained within the frame's content pane borders otherwise it can't/won't get focus. If you resize the main frame so the popup pops up within the content pane, it will work. It's...
Try giving the popup panel a preferred size, e.g:
JPanel PopUpPanel = new JPanel();
PopUpPanel.setPreferredSize(new Dimension(50,20));
...
It wouldn't hurt to request focus for the text field...