🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1682

I am a newhand

#1682
From: eagle
Date: Thu, 01 Nov 2001 18:09
46 lines
1879 bytes

import java.applet.Applet;
import java.awt.*;
import java.awt.event.KeyEvent;


public class HelloWorld extends Applet {


Label helloLabel=new Label("Yo,you look at me?");
    public void init (){
        setBackground (Color.yellow);
        add(helloLabel);
    }


public HelloWorld() {

}
public void paint(Graphics g){
  g.drawString("Hello World!",20,50);
  }

/*   public void keyTyped(KeyEvent e){

        if (e.getKeyChar()=='y'){
           g.drawString("Nice to meet you!",10,10); // Can you tell me why
here variable g
                                              // will be told not be found
in class HelloWorld
                                                  // but g.drawString("Hello
World!",20,50)
                                                 // can work right? I
compile it with JDK1.30
                                                // in JBuilder5

}
        else{
          g.drawString("Please press y for yes.",10,10);
        }

    } */


}
Technical Details
Message-ID: <3be19046_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,b03da8cb175d90c5,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-11-01 10:14:07 PST
From: "eagle" <eagle@win-stock.com.cn>
Newsgroups: borland.public.jbuilder.java.api
Subject: I am a newhand
Date: Fri, 2 Nov 2001 02:09:23 +0800
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 61.171.92.177
Message-ID: <3be19046_2@dnews>
X-Trace: dnews 1004638278 61.171.92.177 (1 Nov 2001 10:11:18 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews