Parent Directory | Revision Log | Patch
revision 1.30 by rabbit78, Fri Jun 3 11:55:28 2005 UTC | revision 1.31 by abalkiss, Wed Jun 22 15:21:47 2005 UTC | |
---|---|---|
# | Line 848 public class SwingUtilities | Line 848 public class SwingUtilities |
848 | } | } |
849 | else | else |
850 | { | { |
851 | int fromIndex = 0; | |
852 | textR.width = fm.stringWidth(text); | textR.width = fm.stringWidth(text); |
853 | textR.height = fm.getHeight(); | textR.height = fm.getHeight(); |
854 | while (text.indexOf('\n', fromIndex) != -1) | |
855 | { | |
856 | textR.height += fm.getHeight(); | |
857 | fromIndex = text.indexOf('\n', fromIndex) + 1; | |
858 | } | |
859 | } | } |
860 | ||
861 | // Work out the position of text and icon, assuming the top-left coord | // Work out the position of text and icon, assuming the top-left coord |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |