🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

createImage() for component

#2500
From: kylui
Date: Sat, 18 Nov 2000 00:00
17 lines
949 bytes
Hello

i created a component called "view". the program will have some drawing on
it.
it can display the drawing correctly. now i want to get the image object
from this component using createImage() and display it into a panel
but only a gray box is display in the panel.
here is the code

g.drawImage(view.createImage(view.getBounds().width,view.getBounds().height)
, 200, 200, this);

please help, is there any other way to do it?

thanks

KY
Technical Details
Message-ID: <8v4vdj$hgq2@bornews.inprise.com>
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: 1089d0,b33f6e26f1379fad,start
X-Google-Attributes: gid1089d0,public
From: "kylui" <kylui@pcgsys.com>
Subject: createImage() for component
Date: 2000/11/18
Message-ID: <8v4vdj$hgq2@bornews.inprise.com>
X-Deja-AN: 694990595
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.api