diff options
author | Adam Young <ayoung@redhat.com> | 2011-11-10 22:12:52 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-12-06 11:20:03 -0500 |
commit | 6119a0222dee4953d51311489d8863daa62d9b14 (patch) | |
tree | dc30408d3be499e1f84c1c49d41bbc109731fb7a /pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java | |
parent | 3c1a4af339dc1761b3a68abe9b0f26bd3cb389cf (diff) | |
download | pki-6119a0222dee4953d51311489d8863daa62d9b14.tar.gz pki-6119a0222dee4953d51311489d8863daa62d9b14.tar.xz pki-6119a0222dee4953d51311489d8863daa62d9b14.zip |
call statics statically
https://bugzilla.redhat.com/show_bug.cgi?id=728303
Updated with changes from code review
Leaving in the warning in GenericASN1Extension, ans that is an indication of a real problem, which will get addressed in a separate patch.
Diffstat (limited to 'pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java')
-rw-r--r-- | pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java b/pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java index 2a7a1ef23..cd6959676 100644 --- a/pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java +++ b/pki/base/common/src/com/netscape/cmscore/base/JDialogPasswordCallback.java @@ -68,12 +68,12 @@ public class JDialogPasswordCallback implements PasswordCallback { } private void resetGBC(GridBagConstraints gbc) { - gbc.gridx = gbc.RELATIVE; - gbc.gridy = gbc.RELATIVE; + gbc.gridx = GridBagConstraints.RELATIVE; + gbc.gridy = GridBagConstraints.RELATIVE; gbc.gridwidth = 1; gbc.gridheight = 1; - gbc.fill = gbc.HORIZONTAL; - gbc.anchor = gbc.CENTER; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.anchor = GridBagConstraints.CENTER; gbc.ipadx = 0; gbc.ipady = 0; gbc.weightx = 0.0; @@ -115,8 +115,8 @@ public class JDialogPasswordCallback implements PasswordCallback { warning.setForeground(Color.red); resetGBC(c); - c.anchor = c.NORTHWEST; - c.gridwidth = c.REMAINDER; + c.anchor = GridBagConstraints.NORTHWEST; + c.gridwidth = GridBagConstraints.REMAINDER; // Setting this to NULL causes nasty Exception stack traces // to be printed, although the program still seems to work //warning.setHighlighter(null); @@ -131,8 +131,8 @@ public class JDialogPasswordCallback implements PasswordCallback { // to be printed, although the program still seems to work //label.setHighlighter(null); resetGBC(c); - c.anchor = c.NORTHWEST; - c.gridwidth = c.REMAINDER; + c.anchor = GridBagConstraints.NORTHWEST; + c.gridwidth = GridBagConstraints.REMAINDER; contentPane.add(label, c); /////////////////////////////////////////////////// @@ -163,10 +163,10 @@ public class JDialogPasswordCallback implements PasswordCallback { pwField.setEchoChar('*'); pwField.addActionListener(getPasswordListener); resetGBC(c); - c.anchor = c.CENTER; - c.fill = c.NONE; + c.anchor = GridBagConstraints.CENTER; + c.fill = GridBagConstraints.NONE; c.insets = new Insets(16, 0, 0, 0); - c.gridwidth = c.REMAINDER; + c.gridwidth = GridBagConstraints.REMAINDER; //c.gridy++; contentPane.add(pwField, c); @@ -180,9 +180,9 @@ public class JDialogPasswordCallback implements PasswordCallback { ok.addActionListener(getPasswordListener); resetGBC(c); - c.fill = c.NONE; - c.anchor = c.CENTER; - c.gridheight = c.REMAINDER; + c.fill = GridBagConstraints.NONE; + c.anchor = GridBagConstraints.CENTER; + c.gridheight = GridBagConstraints.REMAINDER; c.insets = new Insets(10, 0, 0, 4); buttonPanel.add(ok, c); @@ -196,18 +196,18 @@ public class JDialogPasswordCallback implements PasswordCallback { cancel.addActionListener(buttonListener); resetGBC(c); - c.fill = c.NONE; - c.anchor = c.CENTER; + c.fill = GridBagConstraints.NONE; + c.anchor = GridBagConstraints.CENTER; c.insets = new Insets(10, 4, 0, 0); - c.gridheight = c.REMAINDER; - c.gridwidth = c.REMAINDER; + c.gridheight = GridBagConstraints.REMAINDER; + c.gridwidth = GridBagConstraints.REMAINDER; buttonPanel.add(cancel, c); resetGBC(c); - c.fill = c.NONE; - c.anchor = c.CENTER; - c.gridwidth = c.REMAINDER; - c.gridheight = c.REMAINDER; + c.fill = GridBagConstraints.NONE; + c.anchor = GridBagConstraints.CENTER; + c.gridwidth = GridBagConstraints.REMAINDER; + c.gridheight = GridBagConstraints.REMAINDER; c.insets = new Insets(0, 0, 0, 0); contentPane.add(buttonPanel, c); |