🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

getting a splash screen to splash

#15037
From: Alex B. Humphreys
Date: Tue, 13 Jul 1999 00:00
28 lines
1707 bytes
I have a GIF image used as my splash screen (using the code at the end
of this message).  Problem is, if I have it interlaced, it takes forever
to and go from fuzzy to solid (it's only 10K) .  And if I don't have it
interlaced, it takes forever to paint.  Either way, my program is often
done loading before the splash screen has painted, so people never even
see it!

How can I get the screen to paint fully, quickly?  thanks.  --alex

CODE:
    try {
      image.setImageName(System.getProperty("user.dir") +
"/splash.gif");
    } catch (Exception icone) {}
    image.setBackground(Color.lightGray);
    image.setFlat(true);
    window.add(image);
    window.setSize(486,324);     // this is the exact size of the .gif
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = window.getSize();
    if (frameSize.height > screenSize.height)
      frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
      frameSize.width = screenSize.width;
    window.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
    window.setVisible(true);
    window.toFront();
Technical Details
Message-ID: <378B61FD.895A5737@sema4.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,40ec1b51b505b7e9,start
X-Google-Attributes: gidf74b3,public
From: "Alex B. Humphreys" <ahumphreys@sema4.com>
Subject: getting a splash screen to splash
Date: 1999/07/13
Message-ID: <378B61FD.895A5737@sema4.com>
X-Deja-AN: 500559609
Content-Transfer-Encoding: 7bit
Organization: Semaphore, Inc.
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language