01: package org.tp23.antinstaller.renderer.swing;
02:
03: import java.awt.Dimension;
04:
05: import javax.swing.JPasswordField;
06: import javax.swing.text.Document;
07:
08: /**
09: * @author Paul Hinds
10: * @version $Id: AIPasswordField.java,v 1.3 2006/12/21 00:02:59 teknopaul Exp $
11: */
12: public class AIPasswordField extends JPasswordField {
13:
14: public AIPasswordField() {
15: super ();
16: }
17:
18: public AIPasswordField(int columns) {
19: super (columns);
20: }
21:
22: public AIPasswordField(String text) {
23: super (text);
24: }
25:
26: public AIPasswordField(String text, int columns) {
27: super (text, columns);
28: }
29:
30: public AIPasswordField(Document doc, String txt, int columns) {
31: super (doc, txt, columns);
32: }
33:
34: private Dimension prefSize = new Dimension(
35: SizeConstants.FIELD_WIDTH, SizeConstants.FIELD_HEIGHT);
36:
37: public Dimension getMinimumSize() {
38: return prefSize;
39: }
40:
41: public Dimension getPreferredSize() {
42: return prefSize;
43: }
44:
45: public void setOverflow(Dimension prefSize) {
46: this .prefSize = prefSize;
47: }
48:
49: public Dimension getMaximumSize() {
50: return prefSize;
51: }
52:
53: }
|