Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/ui/treetable/JTreeTable.java @ 152:c70a245cad3a
6670684: 4/5 SA command universe did not print out CMS space information
Summary: Forward port of Yumin's fix for 6670684 from HSX-11; Yumin verified the port was correct.
Reviewed-by: dcubed
author | dcubed |
---|---|
date | Fri, 09 May 2008 08:55:13 -0700 |
parents | a61af66fc99e |
children | d1605aabd0a1 |
comparison
equal
deleted
inserted
replaced
83:d3cd40645d0d | 152:c70a245cad3a |
---|---|
475 * make the x location be <code>offset</code>. | 475 * make the x location be <code>offset</code>. |
476 */ | 476 */ |
477 static class TreeTableTextField extends JTextField { | 477 static class TreeTableTextField extends JTextField { |
478 public int offset; | 478 public int offset; |
479 | 479 |
480 public void reshape(int x, int y, int w, int h) { | 480 public void setBounds(int x, int y, int w, int h) { |
481 int newX = Math.max(x, offset); | 481 int newX = Math.max(x, offset); |
482 super.reshape(newX, y, w - (newX - x), h); | 482 super.setBounds(newX, y, w - (newX - x), h); |
483 } | 483 } |
484 } | 484 } |
485 | 485 |
486 | 486 |
487 /** | 487 /** |