Preventing a Component from Gaining the Focus : Focus Event « Event « Java
- Java
- Event
- Focus Event
Preventing a Component from Gaining the Focus
import javax.swing.JFrame;
public class Main {
public static void main(String[] argv) throws Exception {
JFrame frame = new JFrame();
frame.setFocusable(false);
}
}
Related examples in the same category