Prev: Redirecting System.out and exotic characters
Next: How would I rewrite this to satisfy the code checker?
From: Anabolik on 4 Nov 2009 04:19 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 4 Nov 2009 05:38 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 4 Nov 2009 05:45 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 4 Nov 2009 07:48 I found the solution.
From: Lew on 4 Nov 2009 08:51 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
|
Next
|
Last
Pages: 1 2 3 4 Prev: Redirecting System.out and exotic characters Next: How would I rewrite this to satisfy the code checker? |