Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:15:02+00:00 2026-06-09T18:15:02+00:00

I am trying to build a user alert mechanism by bringing up the window

  • 0

I am trying to build a user alert mechanism by bringing up the window to the front and then flashing the icon on the screen for the user. I have two questions with regards to this approach:

  1. How can you find the current window you are at in Java and then de-minimize it and bring to front?
  2. Is there a mechanism in Java that would enable me to simply show the icon for a second or two and then hide it, in the middle of the screen? If not, what would be the way to achieve that?

Thanks a lot for any replies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:15:04+00:00Added an answer on June 9, 2026 at 6:15 pm

    How can you find the current window you are at in Java and then de-minimize it and bring to front

    Window[] allWindows = Window.getWindows(); 
    
    • returns arrays of all Top-Level Containers from current JVM e.g. J/Frame, J/Dialog(JOptionPane), J/Window,

    • you can to test for (example) if (allWindows[i] instanceof JFrame) {

    • then WindowState returned WindowEvent

    by bringing up the window to the front and then flashing the icon on the screen for the user

    use undecodated JDialog (works toFront, toBack) with

    • create only once time

    • setDefaultCloseOperations(HIDE_ON_CLOSE)

    • use Swing Timer for hide JDialog

    Is there a mechanism in Java that would enable me to simply show the icon for a second or two and then hide it, in the middle of the screen? If not, what would be the way to achieve that?

    • have look at Java Translucent Window, put there Icon to the JLabel (or to the JButton)

    use Swing Timer for flashing by hiding Icon or swithing bewtween two or more Icons (three or four is good)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a small testing app with erlang+mnesia. I have a user
I 'm trying to build a user and a contact management project. i have
I have been trying to build a user control with some custom properties set
Trying to build a user interface using PyQt4. Got a dialog window that pops
I am trying to build an application that will alert the user in case
I'm trying to build a simple user setting feature for my school project. I've
I'm trying to build a right box who follows the user scrolling: CSS: .clearfix:after
I am trying to build an Android input control which allows the user to
I'm trying to build a view that operators something similar to this: The user
I am trying to build a shopping cart site. When a user click add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.