TextArea

alice dubois alice.dubois at lemel.fr
Tue Jan 19 08:33:10 PST 1999


hello,

Constructor TextArea(String s) doesn't work. During runTime there is an 
exception:
java.lang.NullPointerException
        at java/awt/TextArea$TextPane.repaintLine(602)
        at java/awt/TextArea$TextPane.insert(335)
        at java/awt/TextArea$TextPane.appendText(65)
        at java/awt/TextArea$TextPane.append(57)
        at java/awt/TextArea.append(858)
        at java/awt/TextArea.<init>(846)
        at java/awt/TextArea.<init>(814)
        at Test.<init>(14)
        at Test.main(23) 

Maybe in line 	"rgr.setColor( getBackground() );" in method repaintLine( int
 row, int startX, TextBuffer tb).

Constructor without any parameters works.

Alice


More information about the kaffe mailing list