🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

(SORRY FOR MY BAD ENGLISH) Problem with a class that inherits from CANVAS

#8568
From: Marco Sindoni
Date: Tue, 08 Aug 2000 00:00
25 lines
1486 bytes
Hello!!!Sorry for my bad english...
My problem: I have a class,called "Pezzo".This class inherits from "Canvas"
and
implements "MouseListener" and "MouseMotionListener". This object paints an
Image that can be dragged with left button. I want to place "n" objects
"Pezzo" on a JFrame...
I use: add(new Pezzo(...)), but on JFrame is displayed only the last object
Pezzo:

Pezzo p1=new Pezzo();
Pezzo p2=new Pezzo();
Pezzo p3=new Pezzo();
...
add(p1);
add(p2);
add(p3); /*-->On JFrame is displayed only p3*/

But I want to place "n" objects "Pezzo" on JFrame...I want to drag all
objects ALL AROUND the screen...

I have used all Layout settings for JFrame, but nothing positive...Please
help me!!!
Bye, Marco...

(se c'� qualcuno che parla italiano � meglio...eh eh :))
Technical Details
Message-ID: <8mom9j$opo$1@pegasus.tiscalinet.it>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,6a83300a81a5b522,start
X-Google-Attributes: gid111d45,public
From: "Marco Sindoni" <msindoni@tiscalinet.it>
Subject: (SORRY FOR MY BAD ENGLISH) Problem with a class that inherits from CANVAS
Date: 2000/08/08
Message-ID: <8mom9j$opo$1@pegasus.tiscalinet.it>
X-Deja-AN: 655778702
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Complaints-To: newsadmin@tiscali.it
X-Trace: pegasus.tiscalinet.it 965729395 25400 62.11.52.99 (8 Aug 2000 10:09:55 GMT)
Organization: Tiscali Spa
X-MSMail-Priority: Normal
NNTP-Posting-Date: 8 Aug 2000 10:09:55 GMT
Newsgroups: borland.public.jbuilder.java.swing