本帖最后由 丁一 于 2013-3-28 08:13 编辑
- import java.awt.*;
- import java.awt.event.*;
- public class MyFrame {
- public static void main(String [] args)
- {
- Frame f = new Frame("my awt");
- f.setSize(200,200);
- f.setLocation(100,100);
- f.setLayout(new FlowLayout());
- Button b1 =new Button("关闭");
- f.add(b1);
-
- f.addWindowListener(new WindowAdapter()
- {
- public void windowClosing(WindowEvent e)
- {
- System.exit(0);
- }
- });
- f.setVisible(true);
-
- }
- }
复制代码 这段程序在Eclipse 中执行 完 显示下面信息,都啥意思啊? 什么错误啥的
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6fee72b7, pid=2440, tid=8972
#
# JRE version: 7.0_17-b02
# Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [GOOGLEPINYIN2.IME+0xa72b7] ImeGetRegisterWordStyle+0x84647
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\Java\Demo\hs_err_pid2440.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
|