Article View: borland.public.jbuilder.java.language
Article #611Re: Keeping an object on top
From: John McGrath [TeamB]
Date: Sun, 27 Mar 2005 20:52
Date: Sun, 27 Mar 2005 20:52
21 lines
1704 bytes
1704 bytes
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:
<xn0e095zk29qfg002@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<424610a3$1@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: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: Keeping an object on top Newsgroups: borland.public.jbuilder.java.language References: <424610a3$1@newsgroups.borland.com> User-Agent: XanaNews/1.17.3.1 Message-ID: <xn0e095zk29qfg002@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:00000324 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.158.33.210 Date: 27 Mar 2005 12:52:30 -0800 X-Trace: newsgroups.borland.com 1111956750 141.158.33.210 (27 Mar 2005 12:52:30 -0800) Lines: 21 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail