Mega Code Archive

 
Categories / Java Tutorial / Swing
 

Preventing a Window from Gaining the Focus

import javax.swing.JFrame; public class Main {   public static void main(String[] argv) throws Exception {     JFrame frame = new JFrame();     frame.setFocusableWindowState(false);   } }