List of usage examples for javax.swing JInternalFrame requestFocus
public void requestFocus()
Component
gets the input focus. From source file:GUIUtils.java
public static void moveToFront(final JInternalFrame fr) { if (fr != null) { processOnSwingEventThread(new Runnable() { public void run() { fr.moveToFront();/*from w w w. j av a2 s . co m*/ fr.setVisible(true); try { fr.setSelected(true); if (fr.isIcon()) { fr.setIcon(false); } fr.setSelected(true); } catch (PropertyVetoException ex) { } fr.requestFocus(); } }); } }