有人能告诉我下面的代码有什么问题吗,我在第一行遇到语法错误。
WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);
谢谢
有人能告诉我下面的代码有什么问题吗,我在第一行遇到语法错误。
WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);
谢谢