🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: help with displaying splash screen at start of program...

#17592
From: Hubert A. Klein Ikkink
Date: Sat, 24 Oct 1998 00:00
37 lines
1960 bytes
Hi Benjamin,

you can find a article about splash screen in JBuilder at:
http://www.drbob42.com/jbuilder/splash.htm
--
Groetjes,

  Hubert A. Klein Ikkink, aka Mr.Haki
  E-mail:  hubertk@worldonline.nl
  Website: http://www.drbob42.com/jbuilder

Benjamin Rutt wrote:

> I would like to display a graphics file as my program is loading.  Does
> anyone know how to do this?  I would like to use a java.awt.Window object,
> since it doesn't have any minimize, maximize or close buttons, like Frames
> and Dialogs do.  It will look cleaner in a Window, I'm told.  The following
> is my code, which is placed at the start of my jbInit():  (BTW this is an
> application, not an applet)
>
>     Window w = new Window((Frame)this);
>     w.setSize(250, 250);
>     w.setLocation(200, 200);
>     Image img =
> w.getToolkit().getDefaultToolkit().getImage("c:\\images\\image1.jpg");
>     w.show();
>     Graphics g = w.getGraphics();
>     g.drawImage(img, 0, 0, this);
>     g.drawString("hello, world!", 0, 0);
>     w.repaint();
>
> A grey box appears when this is run (letting me know that the window was
> drawn), however there is no image, and also there is no "hello world"
> message, as there should be if this was working.  Can anyone help me out?
>
> Thanks,
> Benjamin Rutt
Technical Details
Message-ID: <3631E295.3897EB32@worldonline.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bdfec6$139a4920$dfe2bcc0@ITS.city.bloomington.in.us>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4720e0d8c1bf48cb
X-Google-Attributes: gidf74b3,public
From: "Hubert A. Klein Ikkink" <hubertk@worldonline.nl>
Subject: Re: help with displaying splash screen at start of program...
Date: 1998/10/24
Message-ID: <3631E295.3897EB32@worldonline.nl>
X-Deja-AN: 404593677
Content-Transfer-Encoding: 7bit
References: <01bdfec6$139a4920$dfe2bcc0@ITS.city.bloomington.in.us>
To: Benjamin Rutt <brutt@indiana.edu>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: www.drbob42.com
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language