🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Newbie : display a bmp

#8421
From: Carlos Ojea Castro
Date: Tue, 20 Mar 2001 09:11
24 lines
1346 bytes
Hello !! :

Someone knows why this code don't work?.
May I add another package ?
Here is my code :

import java.awt.*;
class Principal
{
   public static void main(String arg[]) throws InterruptedException
   {
      Bitmap bmpTablero = new Bitmap("Tablero.bmp");
      Graphics Tablero = bmpTablero.getGraphics();
      Tablero.drawImage(bmpTablero, new Point(10, 10));
   }
}

JBuilder says :
'class Bitmap not found in class Principal'
'method drawImage(<any>,java.awt.Point)not found in class
java.awt.Graphics.

Thanks,
Carlos
Technical Details
Message-ID: <3AB71ECB.E0306BEE@rslcom.es>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!213.250.128.151

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,def0e2b29bce1e8f,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-23 03:52:10 PST
Message-ID: <3AB71ECB.E0306BEE@rslcom.es>
Date: Tue, 20 Mar 2001 10:11:39 +0100
From: Carlos Ojea Castro <ccastro@rslcom.es>
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Newbie : display a bmp
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.250.128.151
X-Trace: 20 Mar 2001 01:11:12 -0800, 213.250.128.151
Lines: 25
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!213.250.128.151