From 3b65ec9bbf7fcfb69d5a9b0d59148a587cd32c49 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 27 Mar 2012 02:10:00 -0500 Subject: Replaced deprecated Dialog.show(). The deprecated show() method in Dialog has been replaced with setVisible(). Ticket #3 --- .../src/com/netscape/cmscore/base/JDialogPasswordCallback.java | 2 +- .../common/src/com/netscape/cmscore/util/ProfileSubsystem.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'base') diff --git a/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java b/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java index 51685f42e..4bcf9b44f 100644 --- a/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java +++ b/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java @@ -231,7 +231,7 @@ public class JDialogPasswordCallback implements PasswordCallback { // toFront seems to cause the dialog to go blank on unix! //d.toFront(); - d.show(); + d.setVisible(true); /////////////////////////////////////////////////// // Return results diff --git a/base/common/src/com/netscape/cmscore/util/ProfileSubsystem.java b/base/common/src/com/netscape/cmscore/util/ProfileSubsystem.java index caf05c6df..246e6d96f 100644 --- a/base/common/src/com/netscape/cmscore/util/ProfileSubsystem.java +++ b/base/common/src/com/netscape/cmscore/util/ProfileSubsystem.java @@ -43,7 +43,7 @@ import com.netscape.certsrv.base.ISubsystem; * can be loaded into cert server kernel to perform * run time system profiling. *

- * + * * @author thomask * @version $Revision$, $Date$ */ @@ -90,7 +90,7 @@ public class ProfileSubsystem extends Frame implements ISubsystem, Runnable { * Note that individual subsystem should be initialized in a separated thread if it has dependency on the * initialization of other subsystems. *

- * + * * @param owner owner of this subsystem * @param config configuration store */ @@ -103,7 +103,7 @@ public class ProfileSubsystem extends Frame implements ISubsystem, Runnable { mTextArea = new TextArea(); // mTextArea.setSize(500, 180); - //mGC = new JButton("GC"); + //mGC = new JButton("GC"); // pane.setLayout(new GridLayout(2, 1)); pane.add(mTextArea); // pane.add(mGC); @@ -277,7 +277,7 @@ class ThreadTableEvent extends MouseAdapter { field.setEditable(false); - // get stack trace + // get stack trace Thread threads[] = new Thread[100]; int numThreads = Thread.enumerate(threads); @@ -304,7 +304,7 @@ class ThreadTableEvent extends MouseAdapter { dialog.setVisible(true); dialog.setContentPane(pane); - dialog.show(); + dialog.setVisible(true); } } } -- cgit