🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17368

Re: Feel like a dunce

#17368
From: William Yu
Date: Mon, 16 Nov 1998 00:00
34 lines
1552 bytes
Todd Cary wrote:

> Only been programming for 30 years and consider myself a fairly
> accomplished Delphi/C programmer, but I cannot even get Hello World to
> work with JBuilder!
>
> I have the JBuilder, learn in 21 days.  Is there a simple example that I
> should try or do I stay in the corner with the dunce cap?

The following will print to the console or execution log (depending on how
you've set the project properties).

    public class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello World");
        }
    }

The following will create a popup window that will display the message.

    import java.awt.*;

    public class HelloWorld {
        public static void main(String[] args) {
            Frame f = new Frame();
            f.setSize(200, 150);

            Label l = new Label("Hello World");
            f.add(l);
            f.validate();
            f.setVisible(true);
        }
    }
Technical Details
Message-ID: <364FE4AD.D8A2CFC9@Bigfoot.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <364F7848.E753C31F@aristesoftware.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4d046d7d33eea1ad
X-Google-Attributes: gidf74b3,public
From: William Yu <William_Yu@Bigfoot.com>
Subject: Re: Feel like a dunce
Date: 1998/11/16
Message-ID: <364FE4AD.D8A2CFC9@Bigfoot.com>
X-Deja-AN: 412321277
Content-Transfer-Encoding: 7bit
References: <364F7848.E753C31F@aristesoftware.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language