Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: how to write this simple program? Date: Sun, 29 Mar 2015 20:26:29 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <7466d6e0-1e5d-422e-abdc-9798818b6ad9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Mar 2015 00:27:03 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="30725"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183BRR2h/2TYMGufVkM69Aehg2yEdk4RyY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 In-Reply-To: <7466d6e0-1e5d-422e-abdc-9798818b6ad9@googlegroups.com> Cancel-Lock: sha1:FTwQhgbHcNcuc0QYK7SZMk3Wgjg= Xref: csiph.com comp.lang.java.programmer:31405 On 03/29/2015 04:11 PM, John wrote: > Hi: > > I want to write a simple program: when it is running, it flashes a sentence on the computer screen for 300 milliseconds(300 can be adjusted), then disappear. After 10 seconds(also can be adjusted), it flashes again. It keeps doing this, until the user pause or exit the program. > > There is no any frames to be shown. Only a few words are shown on the desktop screen quickly, then disappear. I don't want to see a rectangle surrounding the words. If the user is using a program, like browsing the internet, the words are still shown on the top of the application he is using. Only if your platform supports compositing, otherwise you'll see an opaque background. > Not sure Java GUI can do this. If not, what other programming language can do it? C programming language? It's intended to be used on Microsoft Windows. Not so much a language issue as a library issue. If you intend to target only windows then Windows API would be the most direct route, and the most likely to way to achieve your goal.