This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Applet - Chat - textaarea

 
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
 
author
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).]
 
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
 
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?
 
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
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
Level Up Your Code with a Pro Java IDE
https://www.jetbrains.com/idea
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!