Solved

Disable beep in JDialog

Posted on 2010-09-01
2
763 Views
Last Modified: 2013-11-23
I want to prevent a JDialog from beeping on display.

I have a class that extends JDialog. In the constructor I set up the components and layout, and then the last line in the constructor I do:
setVisible(true);

Open in new window

at which point it beeps.

How do I stop this?
0
Comment
Question by:allelopath
2 Comments
 
LVL 7

Accepted Solution

by:
rumi78 earned 250 total points
ID: 33581445
JDialog is a blocking window, so you cannot interact with window below it. So most implementations show the dialog on top view (good for them), otherwise you would not be able to click on dialog below window you can not interact with.

Maybe you should just use  frame if you do not want it to be modal.

rgds
rumi
0
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 33582550
The beep is coming from the OS, so you cannot disable it directly from java
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now