summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-03-27 02:10:00 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-03-28 13:18:09 -0500
commit3b65ec9bbf7fcfb69d5a9b0d59148a587cd32c49 (patch)
tree2f84896be3b5218ade8a8a19a4b5a4dc7df0e631 /base
parent176905c3cf27a3ca295921f33d1be956397d4117 (diff)
downloadpki-3b65ec9bbf7fcfb69d5a9b0d59148a587cd32c49.tar.gz
pki-3b65ec9bbf7fcfb69d5a9b0d59148a587cd32c49.tar.xz
pki-3b65ec9bbf7fcfb69d5a9b0d59148a587cd32c49.zip
Replaced deprecated Dialog.show().
The deprecated show() method in Dialog has been replaced with setVisible(). Ticket #3
Diffstat (limited to 'base')
-rw-r--r--base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java2
-rw-r--r--base/common/src/com/netscape/cmscore/util/ProfileSubsystem.java10
2 files changed, 6 insertions, 6 deletions
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.
* <P>
- *
+ *
* @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.
* <P>
- *
+ *
* @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);
}
}
}