Results 1 to 10 of 10
- 06-07-2012, 08:04 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 37
- Rep Power
- 0
Make a jframe "shine" on the taskbar
Hi... have you ever used MSN messenger or any application that as soon as something happens the icon in the task bar lights up and starts shining...?
I developed a chat application and i want that as soon as i receive a new pm the pvt window "shines"... it happens when the window is opened for the first time, but if you keep it opened as soon as u receive a new pm it won't do it again...
- 06-07-2012, 09:19 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Re: Make a jframe "shine" on the taskbar
The trick is to use the JFrame's toFront() method.
Website: Learn Java by Examples
- 06-07-2012, 09:46 AM #3
Member
- Join Date
- Apr 2012
- Posts
- 37
- Rep Power
- 0
Re: Make a jframe "shine" on the taskbar
I use toFront but it opens the window and brings it to front... i need it to stay minimized and then to shine
- 06-07-2012, 10:32 AM #4
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Re: Make a jframe "shine" on the taskbar
I've tried it in my Windows box. When the JFrame is minimized it just flashes and doesn't open the window. But if my window is open is indeed become a top most window.
Website: Learn Java by Examples
- 06-07-2012, 02:41 PM #5
Re: Make a jframe "shine" on the taskbar
I'd recommend using SystemTray and just changing the icon.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 06-14-2012, 06:54 AM #6
Member
- Join Date
- Apr 2012
- Posts
- 37
- Rep Power
- 0
Re: Make a jframe "shine" on the taskbar
Mmmm... can I use the toFront and the minimize without making it noticeable to the user? I think that would work...
- 06-14-2012, 02:39 PM #7
Re: Make a jframe "shine" on the taskbar
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 06-14-2012, 08:51 PM #8
Member
- Join Date
- Apr 2012
- Posts
- 37
- Rep Power
- 0
Re: Make a jframe "shine" on the taskbar
Well, I'll try to use that, if it doesn't work, well I will cry :'(... does anybody else have another possible solution?
- 06-15-2012, 04:11 AM #9
Re: Make a jframe "shine" on the taskbar
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 06-26-2012, 05:31 AM #10
Member
- Join Date
- Apr 2012
- Posts
- 37
- Rep Power
- 0
Similar Threads
-
How do I make a "File does not exist" error?
By name in forum New To JavaReplies: 13Last Post: 01-16-2012, 04:19 PM -
How to make a "real" console program?
By Pojahn_M in forum New To JavaReplies: 3Last Post: 12-26-2011, 01:15 AM -
please give me some idea... i will make a game "FAMILY FEUD"... using desktop appli..
By w0ot28 in forum New To JavaReplies: 1Last Post: 09-30-2011, 01:28 PM -
Can you toggle between look and feel, want to make different "themes"
By ryuzog in forum New To JavaReplies: 4Last Post: 01-04-2010, 01:23 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks