Index: javax/swing/SwingUtilities.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/SwingUtilities.java,v retrieving revision 1.35 diff -u -r1.35 SwingUtilities.java --- javax/swing/SwingUtilities.java 15 Sep 2005 20:24:14 -0000 1.35 +++ javax/swing/SwingUtilities.java 23 Sep 2005 08:50:54 -0000 @@ -890,7 +890,9 @@ iconR.y = 0; textR.y = (horizontalTextPosition == CENTER ? iconR.height + textIconGap - : iconR.height - textR.height); + : Math.max(iconR.height - textR.height, 0)); + System.err.println("iconR.height: " + iconR.height); + System.err.println("textR.height: " + textR.height); break; case CENTER: int centerLine = Math.max(textR.height, iconR.height) / 2;