File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Flashing JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Flashing JFrame" Watch "Flashing JFrame" New topic
Author

Flashing JFrame

Ted Brown
Greenhorn

Joined: Nov 30, 2010
Posts: 4
Hi,

I would like to create a JFrame with two specifal features:

JFrame should not grab focus while maximized from minimized state.
When a JFrame created or became maximized from minimized state, it should flash in the Windows bar until a user will grant a focus to it. (like as in ICQ clients ).
Does anybody know how the second requirement can be implemented?

Little self-explained example:


Thanks!
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Hi, Ted and welcome to the Ranch! Please BeForthrightWhenCrossPostingToOtherSites.
http://forums.oracle.com/forums/thread.jspa?threadID=2137438
http://www.java-forums.org/awt-swing/35443-flashing-jframe.html
http://stackoverflow.com/questions/4305837/flashing-jframe


luck, db
There are no new questions, but there may be new answers.
Ted Brown
Greenhorn

Joined: Nov 30, 2010
Posts: 4
Hi Darryl,
I have also posted here:
http://www.java.net/forum/topic/javadesktop/java-desktop-technologies/swing-awt/flashing-jframe
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Thanks for telling us that, but don't you think you should inform the good folk at java.net about the multiple cross posts?
Ted Brown
Greenhorn

Joined: Nov 30, 2010
Posts: 4
Sure, my fault.

Maybe you can advise me something regarding the cause of topic?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

travishein suggested an approach involving JNI. Did you try it?
Ted Brown
Greenhorn

Joined: Nov 30, 2010
Posts: 4
Yep, but this is not very convenient way, and, unfortunately, not applicable in my particular case. I'm still hoping that the native Java solution exists.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Flashing JFrame