🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Keeping an object on top

#613
From: Alan McIntosh
Date: Tue, 29 Mar 2005 13:05
37 lines
2436 bytes
John,
        Thanks for your reply, this will work, but it doesnt quite meet my
needs, i need something that actually allocates the screen area for itself,
and everything sits below it. even if you try to move an object or page over
it, it wont let you.

Someone said i'd have to use native methods, i believe there is some code
around to do it, its way beyond me, so i'm hoping someone out there has done
it and could put me on the right track.

Thanks


"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:xn0e095zk29qfg002@newsgroups.borland.com...
> On 3/26/2005 at 8:46:14 PM, asystems wrote:
>
> >          I have a small app which reads an XML stream, i would like it
to
> > basically steal the top few pixels of the screen. If anyone has seen the
> > reuters ticker, thats what i want to do. i want to display some
> > statistics i'm gathering there. if anyone has code snippets or any idea
> > of how to do this, i would very muh appreciate it.
>
> Create a Window/JWindow or possibly an undecorated Frame/JFrame and set
> its position and size to the area that you want to "steal".  If you do not
> want other windows to cover this region, you can use setAlwaysOnTop(true)
> on the window.
>
> -- 
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <424952c7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424610a3$1@newsgroups.borland.com> <xn0e095zk29qfg002@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,aaf1be033f7f9713
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alan McIntosh" <asystems@ozemail.com.au>
Newsgroups: borland.public.jbuilder.java.language
References: <424610a3$1@newsgroups.borland.com> <xn0e095zk29qfg002@newsgroups.borland.com>
Subject: Re: Keeping an object on top
Date: Tue, 29 Mar 2005 23:05:48 +1000
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 203.103.60.236
Message-ID: <424952c7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112101575 203.103.60.236 (29 Mar 2005 05:06:15 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail