🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Background image not showing up in Designer

#658
From: Scott Wells
Date: Tue, 01 Apr 2003 19:00
25 lines
1489 bytes
Hello, I've placed a panel on my applet form and wanted to add a
background to it so I can place components (buttons, etc) at
appropriate spots on the image.

I can get the image to show up during run time, but not at design
time. To get the  image as a background, I did the following:

public class UFTApplet extends Applet {
  Panel panel2 = new Panel()
  {
    public void paint(java.awt.Graphics g)
    {
           Image bkgd = getImage(getCodeBase(), "desaltemplate.jpg");

           super.paint(g);
           g.drawImage(bkgd, 0, 0, this);
    }
  };

How can I get the designer to load the image so I can place components
on it?

Thank you.

Scott
Technical Details
Message-ID: <86952eb4.0304011100.551a5b5d@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4b21efc39bf0a3ad,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-04-01 11:00:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: swells@merxyn.com (Scott Wells)
Newsgroups: borland.public.jbuilder.java.api
Subject: Background image not showing up in Designer
Date: 1 Apr 2003 11:00:12 -0800
Organization: http://groups.google.com/
Lines: 25
Message-ID: <86952eb4.0304011100.551a5b5d@posting.google.com>
NNTP-Posting-Host: 65.71.89.122
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1049223613 31687 127.0.0.1 (1 Apr 2003 19:00:13 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 1 Apr 2003 19:00:13 GMT