Solved

What replaced JDialog show()

Posted on 2007-11-23
3
3,287 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 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

19 Experts available now in Live!

Get 1:1 Help Now