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

  • Home
  • SEARCH
  • 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 7551523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:31:04+00:00 2026-05-30T10:31:04+00:00

I have been doing some reading and have found out that the Java Swing

  • 0

I have been doing some reading and have found out that the Java Swing cannot stay on top of full screen applications without a horrible flickering effect. Is this true?
The flickering effect:
I have a thread that updates the frame.setAlwaysOnTop() to true every 200ms.

If it is I was looking for an alternative to method to do this in and was reading about C/C++/C#s SetWindowsPos and it looks like this would do it for me. However, before I rewrite my program I want to know if this will allow me to keep my program on top of another fullscreen application.
Thanks

  • 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-05-30T10:31:06+00:00Added an answer on May 30, 2026 at 10:31 am

    Short answer: Not really, no.

    Longer answer: A “full-screen” app uses the display in a different way than a normal Windows GUI app. Exactly how they work depends on the application and the OS; most will leverage the DirectX or OpenGL APIs which allow applications to directly manipulate the memory representing the screen, as well as access the accelerated capabilities of the GPU. These apps are supported by basically creating a GUI “window” (more like a panel) that covers the entire primary display and is “always on top”, preventing the desktop elements from ever being painted as they’re always behind the full-screen app’s window in the Z-order. The application then gets “relaxed” access to the memory representing the display rectangle of that GUI window, so it can manipulate individual pixels without needing to use the message loop to repaint that area.

    In this situation, the display is being painted when the application wants (which is virtually always either “as fast as possible” or “synchronized with the next monitor scan”), NOT when the Windows GUI thinks it’s a good time. So, anything that IS painted when Windows thinks it’s a good idea will flicker; Windows paints your “always on top” window over the app’s “window” in the GUI’s Z-order, then the app paints back over the window by drawing directly onto its rectangle. That causes Windows to invalidate and redraw your window, and the cycle continues.

    The solution is not only to make an “always-on-top” window, but to somehow programmatically “task-switch” from the full-screen app’s window to yours. This may require your app to have privileges that most managed runtimes can’t or won’t grant. If it’s possible, then when it happens the full-screen app will minimize (which may or may not be a HUGE problem for your users; whatever your app is trying to tell me, it will almost certainly NOT be worth minimizing my StarCraft 2 session in the middle of an online melee).

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

Sidebar

Related Questions

I have been doing some unsafe bitmap operations and have found out that increasing
I have been doing some reading, and I see that I can use getch()
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been
I have been doing some testing whilst using Jquery UI datepicker and have found
I have been doing some reading on this subject, but I'm curious to see
I have been doing some catching up lately by reading about cloud hosting. For
I have been doing some reading lately one article I read was from Opera.
I have been doing some reading in preparation for starting my first WCF project
I've been doing some reading recently and have encountered the Law of Demeter. Now
I've been doing some javascript reading, and I've gathered that a closure has access

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.