🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8288

Re: Hiding Title Bar

#8288
From: Captain Claw
Date: Thu, 28 Sep 2000 00:00
81 lines
3164 bytes
This is a multi-part message in MIME format.
--------------47769A32FA7537E637659924
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thank you very much for your help . I now uses Window instead of Frame and it worked fine

Joi Ellis wrote:

> Captain Claw wrote:
> >
> > How can I hide the Title bar of a Frame. I need it for a splash screen
> > in my application.
> > Also is there any way to centre my splash screen. A sample screen would
> > be of great help.
>
> Use a JWindow, not a JFrame.
>
> package com.aravox.ShunWizard;
>
> import java.awt.Component;
> import java.awt.Container;
> import java.awt.Dimension;
> import java.awt.Toolkit;
> import java.net.URL;
> import javax.swing.ImageIcon;
> import javax.swing.JLabel;
> import javax.swing.JWindow;
>
> public class Splash extends JWindow {
>     static java.util.ResourceBundle resBunble =
> java.util.ResourceBundle.getBundle("com.aravox.ShunWizard.resBundle")/*#BundleType=Property*/;
>
>   public Splash() {
>     super();
>     JLabel image;
>
>     try {
>       image =
>         new JLabel( new ImageIcon( getClass().getResource( "aravox2.gif" ) ) );
>     } catch (Exception e) {
>       image = new JLabel(resBunble.getString("Splash_Text"/*#Finished:Original="<html>Aravox Technologies,
> Inc.<br>Loading...<@/html>"*/));
>     }
>     getContentPane().add(image);
>     Dimension screensize = Toolkit.getDefaultToolkit().getScreenSize();
>     setLocation( screensize.width / 3, screensize.height / 3 );
>     pack();
>     validate();
>     setVisible(true);
>   }
> }
>
> --
> Joi Ellis                    Software Engineer
> Aravox Technologies          joi@aravox.com, gyles19@visi.com
>
> No matter what we think of Linux versus FreeBSD, etc., the one thing I
> really like about Linux is that it has Microsoft worried.  Anything
> that kicks a monopoly in the pants has got to be good for something.
>            - Chris Johnson

--------------47769A32FA7537E637659924
Content-Type: text/x-vcard; charset=us-ascii;
 name="captainclawfree.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Captain Claw
Content-Disposition: attachment;
 filename="captainclawfree.vcf"

begin:vcard 
n:Claw;Captain
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:captainclawfree@yahoo.com
note;quoted-printable:Please do not Spam=0D=0A=0D=0AFeel free to contact me through Yahoo! Instant Messenger
fn:Captain Claw
end:vcard

--------------47769A32FA7537E637659924--
Technical Details
Message-ID: <39D34827.286BC1FE@yahoo.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39CCE866.4063466B@yahoo.com> <39D0C679.DA56F888@aravox.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ca51ca1cb7c9b686
X-Google-Attributes: gid111d45,public
From: Captain Claw <captainclawfree@yahoo.com>
Subject: Re: Hiding Title Bar
Date: 2000/09/28
Message-ID: <39D34827.286BC1FE@yahoo.com>
X-Deja-AN: 675497911
References: <39CCE866.4063466B@yahoo.com> <39D0C679.DA56F888@aravox.com>
To: joi@aravox.com
X-Accept-Language: en
Content-Type: multipart/mixed; boundary="------------47769A32FA7537E637659924"
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing