From: Anabolik on
For JDialog it exists the function toFront. How to implement the logic
to show the JDialog in the front of desktop every 30 seconds?
From: RedGrittyBrick on

Anabolik wrote:
> For JDialog it exists the function toFront. How to implement the logic
> to show the JDialog in the front of desktop every 30 seconds?

Maybe you could use a java.util.Timer.

This feature is likely to be very annoying for users isn't it? There are
more conventional and platform-specific means of drawing the user's
attention to applications that are awaiting their attention. In the case
of Windows that might be blinking the application's icon in the tool bar.

--
RGB
From: Anabolik on
I made in Timer. Here the code:

int delay = 30000;
Timer timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
myDialog.toFront();
myDialog.repaint();}
}, delay);

but my dialog did not appear on the front of all windows.
From: Anabolik on
I found the solution.
From: Lew on
Anabolik wrote:
> I found the solution.

And thank you ever so much for sharing it with us instead of treating us like
your private, unpaid support staff.

This is a discussion group, not a help desk.

--
Lew