Parent Directory | Revision Log | Patch
revision 1.21 by mark, Sat Jul 2 20:32:49 2005 UTC | revision 1.22 by langel, Fri Jul 29 14:57:15 2005 UTC | |
---|---|---|
# | Line 197 public class JTextField extends JTextCom | Line 197 public class JTextField extends JTextCom |
197 | public void insertString(int offset, String str, AttributeSet a) | public void insertString(int offset, String str, AttributeSet a) |
198 | throws BadLocationException | throws BadLocationException |
199 | { | { |
200 | if (str.indexOf('\n') == -1) | if (str != null && str.indexOf('\n') == -1) |
201 | super.insertString(offset, str, a); | super.insertString(offset, str, a); |
202 | } | } |
203 | }; | }; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |