Article View: borland.public.jbuilder.java.language
Article #14532Re: How can I create a JPanel with a background image?
From: Lois Neo
Date: Mon, 30 Aug 1999 00:00
Date: Mon, 30 Aug 1999 00:00
21 lines
1093 bytes
1093 bytes
write a class to extend JPanel and override the paint(graphics) method. load your image file and in the paint()method, use drawImage() to draw your image on the panel. hope it helps. -- Lois Bombi <abonetti@yahoo.com> wrote in message news:7qcaed$41s6@forums.borland.com... > Hi there, > I'm novice in JBuilder and Java. > How can I create a JPanel with a background image or icon? I want (possibly) > use swing component. > Thanx > > Bombi > ABonetti@yahoo.com > >
Technical Details
Message-ID:
<7qdu1d$5ri6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7qcaed$41s6@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,983ecddc44b1ebfb X-Google-Attributes: gidf74b3,public From: "Lois Neo" <slneo@cybergal.com> Subject: Re: How can I create a JPanel with a background image? Date: 1999/08/30 Message-ID: <7qdu1d$5ri6@forums.borland.com> X-Deja-AN: 518848374 References: <7qcaed$41s6@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Lois Neo" <slneo@cybergal.com> Newsgroups: borland.public.jbuilder.java.language