Article View: borland.public.jbuilder.java.swing
Article #12597Re: Constructor not found
From: Steve Waters
Date: Thu, 10 Dec 1998 00:00
Date: Thu, 10 Dec 1998 00:00
20 lines
1135 bytes
1135 bytes
please look at image in a tree
Steve
John Jones wrote:
> I am trying to create as class to add image to a JTree and I found several
> examples that override the paint in a class but I can not get this to work.
> What do I need to do to this class?
>
> public class MyTree extends JTree {
>
> public void paint(Graphics g){
> super.paint(g);
> Image backGroundImage =
> Toolkit.getDefaultToolkit().getImage("AGLMenuBkgd.jpg");
> Dimension d = getSize();
> g.drawImage(backGroundImage,0,0,d.width,d.height,this);
> }
> }
Technical Details
Message-ID:
<3670364A.69E4EF10@bellsouth.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<74oob5$e0811@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,66c60665803a549d X-Google-Attributes: gid111d45,public From: Steve Waters <steve_w@bellsouth.net> Subject: Re: Constructor not found Date: 1998/12/10 Message-ID: <3670364A.69E4EF10@bellsouth.net> X-Deja-AN: 420934378 Content-Transfer-Encoding: 7bit References: <74oob5$e0811@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing