This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 5040
    
  10

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: 5040
    
  10

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: 5040
    
  10

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
 
It's not a secret anymore!