Duplicate :
|
Compile the code below and run it on Win32. Notice that hitting ALT+SPACE does not bring up the system menu. This works fine on Solaris. import com.sun.java.swing.*; import java.awt.event.*; public class TestApp extends JFrame { public TestApp() { super("TestApp"); this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent ev) { System.exit(0); } }); this.setSize(300, 300); this.setVisible(true); } static public void main(String args[]) { new TestApp(); } }
|