0
set the focus back to the first jframe. you can do this by calling requestFocus. e.g. JFrame frame1 = new JFrame(); . . frame1.setVisible(true); JFrame frame2 = new JFrame(); . . frame2.setVisible(true); //set focus back to 1 frame1.requestFocus(); http://docs.oracle.com/javase/7/docs/api/java/awt/Component.html#requestFocus()
11th Sep 2016, 12:33 AM
Tucura
Tucura - avatar