• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet - Chat - textaarea

 
gkasinath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! I am having a certain problem with applets, more specifically on the Text Area, even after I append the text area using the textareaobject.append(String), the String is not displayed on the textarea, but when I get the textarea contents with the textareaobject.gettext() method the String is fetched, please tell me what the problem is all about since i am unable to resolve the same.
a timely and fast help will be appreciated.
thanks
gautham kasinath
mail me at: gkasinath@hotmail.com
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fired up my ide and tried to duplicate the problem you described. I thought that maybe if you called append() before the TextArea contained any data, it might cause this or perhaps if you used the empty constructor it may cause problems stemming from instantiation. Nope. Everthing I tried worked, fine. Two other thing I can think of right away are:
1) Check the version of the JDK you using against the known bug repository at Sun ( I futzed with a scrollpane for a week once before I realized that the version of the jdk I was using had a bug in the scrollpane's event handling - and I thought it was me!)
2) This is the only way I could duplicate the problem you described (please don't take it the wrong way). Are you sure you're adding the component to the applet using add(myTextArea)? If you forget to do this, the TextArea will append and retrieve Strings 'till the cows come home, but you won't see a darn thing.
Sorry, if this turns out to be no help at all.
Sean
[This message has been edited by Sean MacLean (edited November 10, 2000).]
 
gauthamkasinath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sean MacLean:
I fired up my ide and tried to duplicate the problem you described. I thought that maybe if you called append() before the TextArea contained any data, it might cause this or perhaps if you used the empty constructor it may cause problems stemming from instantiation. Nope. Everthing I tried worked, fine. Two other thing I can think of right away are:
1) Check the version of the JDK you using against the known bug repository at Sun ( I futzed with a scrollpane for a week once before I realized that the version of the jdk I was using had a bug in the scrollpane's event handling - and I thought it was me!)
2) This is the only way I could duplicate the problem you described (please don't take it the wrong way). Are you sure you're adding the component to the applet using add(myTextArea)? If you forget to do this, the TextArea will append and retrieve Strings 'till the cows come home, but you won't see a darn thing.
Sorry, if this turns out to be no help at all.
Sean
[This message has been edited by Sean MacLean (edited November 10, 2000).]

 
gauthamkasinath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well now I have a different problem, well the Applet when minimised and maximised back calls its paint method but the buttons do not respond to clicks.. well they do nothig @ all. the click is not into the actionlistener class @ all..
please help
 
Sarada Bhasker
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me how you overcame the problem of textarea not getting updated?
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gkasinath,
Please be sure to register with a proper name. If you do not, your account will be disabled. See the following link for details:
http://www.javaranch.com/name.html
Thanks.
Stephanie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic