Solved

How to Flash/Blink the Taskbar button of an java Application

Posted on 2010-08-23
3
917 Views
Last Modified: 2013-11-23
I need to blink taskbar button of java application 3 times to alert the user.

I do not want to use native solution.
0
Comment
Question by:sultanpc
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 33507781
you can try calling toFront() on your frame, you can't control how any times it flashes though
other than that think you're stuck with native solutions
0
 
LVL 11

Assisted Solution

by:Bruce Smith
Bruce Smith earned 250 total points
ID: 33507800
Okay, so I'm not sure you can do this using a non-native solution but the following seems to accomplish what you're looking for. It flashes the task-bar (not necessarily 3 times) but definitely alerts the user.

[code]
this.toFront();
this.toBack();
[/code]

Or instead of 'this', the name of the frame or panel you want to bring to attention.
0
 

Author Closing Comment

by:sultanpc
ID: 33555411
Thanks for the support. It works with Vista
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JUnit 4 @Before and @BeforeClass differences 3 59
jar file executable 12 51
print map entry 34 68
Adding multiple JVM environments to RedHat 6 7 20
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question