Parent Directory | Revision Log | Patch
revision 1.8 by mkoch, Thu Feb 13 19:32:37 2003 UTC | revision 1.9 by tromey, Wed Feb 19 03:50:33 2003 UTC | |
---|---|---|
# | Line 370 getPreferredSize(int rows, int columns) | Line 370 getPreferredSize(int rows, int columns) |
370 | { | { |
371 | TextAreaPeer tap = (TextAreaPeer)getPeer(); | TextAreaPeer tap = (TextAreaPeer)getPeer(); |
372 | if (tap == null) | if (tap == null) |
373 | return(null); // FIXME: What do we do if there is no peer? | { |
374 | // Sun's JDK just seems to return Dimension(0,0) in this case. | |
375 | // we do the same. | |
376 | return new Dimension(0, 0); | |
377 | } | |
378 | ||
379 | return(tap.getPreferredSize(rows, columns)); | return(tap.getPreferredSize(rows, columns)); |
380 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |