Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Disable beep in JDialog

Posted on 2010-09-01
2
775 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How can I build my own IDE using ASP.NET MVC? 2 53
session migration servlets 2 42
Visual Studio 2013 and Eclipse Neon 6 48
Facing this issue for maven proxy setting 2 20
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 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