Article View: borland.public.jbuilder.java.swing
Article #12594Constructor not found
From: John Jones
Date: Thu, 10 Dec 1998 00:00
Date: Thu, 10 Dec 1998 00:00
14 lines
936 bytes
936 bytes
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:
<74oob5$e0811@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,66c60665803a549d,start X-Google-Attributes: gid111d45,public From: "John Jones" <john_jonesiii@msn.com> Subject: Constructor not found Date: 1998/12/10 Message-ID: <74oob5$e0811@forums.borland.com> X-Deja-AN: 420821192 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.swing