Solved

Disable beep in JDialog

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

813 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

18 Experts available now in Live!

Get 1:1 Help Now