🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8715

Re: help with initializing

#8715
From: Stephan Klaffer
Date: Mon, 24 Jul 2000 00:00
30 lines
1363 bytes
Hmm, I think you need to specify a constructor for your class, like

public TestCards() {}

Stephan


"Randy" <slyfox65@netzero.net> wrote in message
news:8lg0rc$da55@bornews.borland.com...
> can someone please tell me what isn't initialize with this code?
> import java.awt.*;
> import java.awt.event.*;
> import javax.swing.*;
>
> public class TestCards extends JApplet {
>  private JTextField enter;
>
>   public void init() {
>        Container c = getContentPane();
>        c.setLayout(new FlowLayout());
>
>        enter = new JTextField(5);
>        enter.setEditable(false);
>        c.add(enter);
>    }
>
>
>   }
>
>
Technical Details
Message-ID: <964442782.20321.0.nnrp-12.c29f1f7c@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8lg0rc$da55@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6bad649f613d36c5
X-Google-Attributes: gid111d45,public
From: "Stephan Klaffer" <stephan.klaffer@decisionworks.co.uk>
Subject: Re: help with initializing
Date: 2000/07/24
Message-ID: <964442782.20321.0.nnrp-12.c29f1f7c@news.demon.co.uk>
X-Deja-AN: 650101640
X-NNTP-Posting-Host: [194.159.31.124]:194.159.31.124
References: <8lg0rc$da55@bornews.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 964442782 nnrp-12:20321 NO-IDENT [194.159.31.124]:194.159.31.124
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing