Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31406
| 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 <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: how to write this simple program? |
| Date | Sun, 29 Mar 2015 20:27:57 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 35 |
| Message-ID | <mfa5be$u05$2@dont-email.me> (permalink) |
| References | <7466d6e0-1e5d-422e-abdc-9798818b6ad9@googlegroups.com> <mf9nl2$b83$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 30 Mar 2015 00:28:30 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="30725"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZhLDfWagAsMVCLsIJsMzr/XpT/xUfw+0=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 |
| In-Reply-To | <mf9nl2$b83$1@dont-email.me> |
| Cancel-Lock | sha1:hxTmWPxjOpkEKHtPxR0vz/jg5b4= |
| Xref | csiph.com comp.lang.java.programmer:31406 |
Show key headers only | View raw
On 03/29/2015 04:35 PM, Eric Sosman wrote: > On 3/29/2015 4: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. >> >> 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. > > Java can do it, pretty much. Build a JFrame containing what you > want to display, and before displaying it use setUndecorated(true) and > probably setAlwaysOnTop(true). Then use a javax.swing.Timer object to > make the JFrame visible/invisible at scheduled moments (you could do it > with a java.util.Timer, too, but the Swing timer is probably simpler). > > The "pretty much" part is that the method I've described will also > put an icon in the taskbar (if there's a way to avoid this, I don't know > it), so your "only a few words" requirement is not satisfied perfectly. > On the other hand, you imply that the user should be able to "pause or > exit the program," which suggests he needs *some* way to communicate > with it; a taskbar icon might be just what's needed. > <http://stackoverflow.com/questions/24564136/javafx-can-you-create-a-stage-that-doesnt-show-on-the-task-bar-and-is-undecora>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to write this simple program? John <xsli2@yahoo.com> - 2015-03-29 13:11 -0700
Re: how to write this simple program? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-03-29 16:35 -0400
Re: how to write this simple program? Jeff Higgins <jeff@invalid.invalid> - 2015-03-29 20:27 -0400
Re: how to write this simple program? John <xsli2@yahoo.com> - 2015-03-29 18:23 -0700
Re: how to write this simple program? Jeff Higgins <jeff@invalid.invalid> - 2015-03-29 22:50 -0400
Re: how to write this simple program? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-03-30 08:13 -0400
Re: how to write this simple program? Lew <lewbloch@gmail.com> - 2015-04-04 10:02 -0700
Re: how to write this simple program? Jeff Higgins <jeff@invalid.invalid> - 2015-03-29 20:26 -0400
csiph-web