diff options
Diffstat (limited to 'libjava/java/awt/TextArea.java')
-rw-r--r-- | libjava/java/awt/TextArea.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/java/awt/TextArea.java b/libjava/java/awt/TextArea.java index f458f9b..ec87f87 100644 --- a/libjava/java/awt/TextArea.java +++ b/libjava/java/awt/TextArea.java @@ -370,7 +370,11 @@ getPreferredSize(int rows, int columns) { TextAreaPeer tap = (TextAreaPeer)getPeer(); if (tap == null) - return(null); // FIXME: What do we do if there is no peer? + { + // Sun's JDK just seems to return Dimension(0,0) in this case. + // we do the same. + return new Dimension(0, 0); + } return(tap.getPreferredSize(rows, columns)); } |