- 0
Java: Prevent opening duplicate dialogs
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Defiantly · Posted
Burrrrn. Bought COD WWII last month when it was on sale for PC. Oh well. Excellent game tho, and the PC version plays/looks amazing (and has it's own PC achievements). ...wondering if this is a lesson on waiting on sales. ...also hoping Rise of the Tomb Raider has it's own PC Achievements -
By Copernic · Posted
Google Chrome 137.0.7151.120 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Important to know! The offline installer links do not include the automatic update feature. Google Chrome 137.0.7151.120 changelog: [$7000][420697404] High CVE-2025-6191: Integer overflow in V8. Reported by Shaheen Fazim on 2025-05-27 [$4000][421471016] High CVE-2025-6192: Use after free in Profiler. Reported by Chaoyuan Peng (@ret2happy) on 2025-05-31 [425443272] Various fixes from internal audits, fuzzing and other initiatives Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | 128.0 MB Download: Google Chrome Offline Installer 32-bit | 115.0 MB Download page: Google Chrome Portable Download: Google Chrome MSI Installers for Windows (automatic update) View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware -
-
By pmrd · Posted
-Drop the art style, it's cool but doesn't fit the franchise at all. -Make it a gritty single player game, like Halo -Include deathmatch and all that stuff, extraction can be a separate mode If they don't do that, it's dead on arrival IMO. -
By pmrd · Posted
It's a shame because it's one of the best immersive sims ever made, even though it could have used a bit more monster variety IMO.
-
-
Recent Achievements
-
Custom Greek Shirts earned a badge
One Month Later
-
Custom Greek Shirts earned a badge
Week One Done
-
Custom Greek Shirts earned a badge
One Year In
-
topantidetectbrowser earned a badge
Week One Done
-
Jdoe25 went up a rank
Explorer
-
-
Popular Contributors
-
Tell a friend
Question
iczman
I'm working on a java project that it has a menu where you can click File > Login to pop out a dialog for user to enter their login info.
My problem is, when the login dialog is present, user and focus back to the main JFrame and select File > Login to pop out another dialog. I'm searching for a way to prevent this from happening. So far I thought about two solutions but I don't know which is the best way to go about solving this kind of issue:
Solution 1: In my customzied JFrame class, declare a boolean that holds the visibility of the login dialog. Whenever the user goes File > Login, it will first check to see if it's already visible or not, then open the dialog if it's not already opened.
Solution 2: Prevent user to set focus back to the main JFrame when the dialog box is opened.
If you were me, how would you approach this problem? And which one is more effective or a common practice?
Link to comment
https://www.neowin.net/forum/topic/434096-java-prevent-opening-duplicate-dialogs/Share on other sites
8 answers to this question
Recommended Posts