🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #903

Multiple interface implementation, etc.

#903
From: Raymond George Montalban
Date: Thu, 09 Mar 2000 00:00
40 lines
1738 bytes
To all,

Could anyone help me with this problem please? I have asked around and
basically
everyone I know or am in contact with know *nothing* about Java. Anyway,

is it legal or possible to implement multiple interfaces?

I.e., is this following legal ...

public class GrammarWorld extends Applet implements Runnable,
ActionListener
{
.
.
.
}

???

(The line starting with "public class ..." is of my concern).

If I can't do the above, how do I implement both the ActionListener and
Runnable interaces
at the same time?

I need to be able to have both a sprite and a form on the same screen.
Or else I'm stuck
to having two separate screens - one with a Java sprite animating
various things
on a screen, and another with explanation. I'd like to have both of them
on the one
screen. Since I'm fairly new to OOP and Java in general, I really don't
want to go into
the Swing component library unless absolutely necessary.

Is there an easy way to split the screen into two parts?

Thanks for all your help in advance,
Raymond.
Technical Details
Message-ID: <38C79C2C.7A336B02@ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,a15af3a73d14f86d,start
X-Google-Attributes: gid10d6db,public
From: Raymond George Montalban <rmontal@ozemail.com.au>
Subject: Multiple interface implementation, etc.
Date: 2000/03/09
Message-ID: <38C79C2C.7A336B02@ozemail.com.au>
X-Deja-AN: 595140516
Distribution: world
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: ozemail.com.au 952605950 203.108.18.239 (Thu, 09 Mar 2000 23:45:50 EST)
Organization: OzEmail Pty Ltd, Australia
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 09 Mar 2000 23:45:50 EST
Newsgroups: aus.computers.java