Results 1 to 4 of 4
  1. #1
    mattxo is offline Member
    Join Date
    Jun 2011
    Posts
    17
    Rep Power
    0

    Default How to make a program flash if it isnt in focus

    Hi , i am creating a simple chat program in java.

    When the program receives a message but isnt the main program in focus on the screen i would like it to flash on the taskbar so that the user knows there is a new message.

    I have searched and cannot find anything, can someone help me please .

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    mattxo is offline Member
    Join Date
    Jun 2011
    Posts
    17
    Rep Power
    0

    Default

    thanks i see the isFocused will be useful but is there a method to make the app flash in the taskbar

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

Similar Threads

  1. Why isnt my program detecting any key presses?
    By rajkobie in forum New To Java
    Replies: 6
    Last Post: 05-19-2011, 06:45 PM
  2. Replies: 3
    Last Post: 02-02-2011, 11:53 AM
  3. Replies: 11
    Last Post: 12-25-2009, 11:30 PM
  4. Make multiple JTextFields focus at the same time.
    By toymachiner62 in forum AWT / Swing
    Replies: 6
    Last Post: 10-09-2009, 03:59 AM
  5. Replies: 0
    Last Post: 04-22-2009, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •