🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problems with graphic context

#17944
From: Christoph Happich
Date: Wed, 02 Sep 1998 00:00
35 lines
1763 bytes
--------------B40269EF5EE923D5870713FD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!
I"m getting a NullPointer Exception just by adding this line to my
component's constructor:
    createImage(1,1).getGraphics();
I think it's because the graphic context is not available in unvisible
components. But, it should, because the context of the image has nothing
to do with the component's context.
I need that image for doube buffering. The buffer must be created BEFORE
my component is drawn.
Any ideas ?
Christoph

--------------B40269EF5EE923D5870713FD
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Hi!
<BR>I"m getting a NullPointer Exception just by adding this line to my
component's constructor:
<BR>&nbsp;&nbsp;&nbsp; <TT>createImage(1,1).getGraphics();</TT>
<BR>I think it's because the graphic context is not available in unvisible
components. But, it should, because the context of the image has nothing
to do with the component's context.
<BR>I need that image for doube buffering. The buffer must be created BEFORE
my component is drawn.
<BR>Any ideas ?
<BR>Christoph</HTML>

--------------B40269EF5EE923D5870713FD--
Technical Details
Message-ID: <35EDB43C.199BB68B@techfa.uni-bielefeld.de>
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: f74b3,c43cd982853305aa,start
X-Google-Attributes: gidf74b3,public
From: Christoph Happich <chappich@techfa.uni-bielefeld.de>
Subject: Problems with graphic context
Date: 1998/09/02
Message-ID: <35EDB43C.199BB68B@techfa.uni-bielefeld.de>
X-Deja-AN: 387256148
Content-Type: multipart/alternative; boundary="------------B40269EF5EE923D5870713FD"
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language