Solved

What replaced JDialog show()

Posted on 2007-11-23
3
3,291 Views
Last Modified: 2013-12-22
What has replaced the JDialog show() method?  I've searched on the Web and even the Sun doc didn't show it as depreciated, but compiling shows this:

Note: RdbLogin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
MegaZillionareRdbApplet.java:52: warning: [deprecation] show() in java.awt.Dialog has been deprecated
        loginDialog.show();
                   ^
1 warning

Ubuntu:>javac -version
javac 1.6.0_03


0
Comment
Question by:yyyc186
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 20340816
setVisible(true);
1
 
LVL 3

Expert Comment

by:sreehariharan
ID: 22007200
you can use
loginDialog.setVisible(true);
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

831 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