🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #19411

java��ͼ����

#19411
From: ����ʬ
Date: Tue, 06 Jan 2004 06:42
19 lines
1303 bytes
�տ�ʼ����������ȥ��
�������£�
 private void jbInit() throws Exception  {
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    Graphics g = getGraphics();
    g.drawString("haha",4,4);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Matrix3D");

  }

���ڴ����ڻ��㶫����д����
���ǵ���g.drawString��һ�оͳ�һ��NullPointerException
����ô�����أ�

--
�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 162.105.71.221]
Technical Details
Message-ID: <4A9WjB$A0G@bbs.pku.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!PKU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,33ad995b7043c785,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-05 22:43:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!PKU
From: waitting@bbs.pku.edu.cn (����ʬ)
Newsgroups: cn.bbs.comp.lang.java
Subject: java��ͼ����
Date: 06 Jan 2004 06:42:16 GMT
Organization: ����δ��վ
Message-ID: <4A9WjB$A0G@bbs.pku.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1073371259.A
Lines: 19