I'm building a Java application with a Swing GUI and a task that takes a lot of time to complete (from 10secs to 10minutes, don't have any real control on the hamsters).
For now I switch between two JPanel
s inside another JPanel
which has CardLayout
layout manager to say "I'm working" or "I'm done". The switching between panels doesn't notify the desktop that something has changed.
Is there any way to notify the operating system that the task has completed?
Real world examples: on Windows XP it should make the taskbar button blink, in Mac OSX it should make the dockbar icon jump.
Thanks in advance!