Skip to content

Commit 02f6de4

Browse files
hansonrhansonr
authored andcommitted
AWT TextField getMinimumSize loop
1 parent df9cd56 commit 02f6de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/net.sf.j2s.java.core/src/javax/swing/JTextField.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ protected int getJ2SWidth(int columns) {
456456
}
457457

458458
protected Dimension getMinimumSizeJTF(int columns) {
459-
// for java.awt.JextField only
460-
Dimension size = getMinimumSize();
459+
// for java.awt.TextField only
460+
Dimension size = super.getMinimumSize();
461461
if (columns != 0) {
462462
size.width = getJ2SWidth(columns);
463463
}

0 commit comments

Comments
 (0)