1. JWindow closes after a particular key combination java-forums.orgimport java.awt.Dimension; import java.awt.Window; import java.awt.Toolkit; import javax.swing.JOptionPane; import javax.swing.JWindow; import javax.swing.JFrame; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; public class Application { private JFrame frame = new JFrame("Test"); private Window window = new Window(frame); private Dimension resolution = Toolkit.getDefaultToolkit().getScreenSize(); private JWindow application = new JWindow(window); public Application() { application.addKeyListener(new keyListener()); application.setAlwaysOnTop(true); application.setSize(resolution); application.setVisible(true); } private class keyListener implements KeyListener { public void keyPressed(KeyEvent ... |