This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Posting combo box to textarea. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Posting combo box to textarea." Watch "Posting combo box to textarea." New topic
Author

Posting combo box to textarea.

alexiel davis
Greenhorn

Joined: Sep 14, 2004
Posts: 4
Actually I am hoping that someone can give me a example on how to pass value from combo box to textarea. I have done one..but it doesn't works.


Michal Bienek
Greenhorn

Joined: Jun 17, 2002
Posts: 29
You need to add an ItemListener, not an ActionListener to obtain combo box selection events. You'll need to implement an itemStateChanged(ItemEvent e) method in which you can retrieve the selected combo box value via e.getItem(), and then populate your text area with that.
 
rocket mass heater kickstarter
 
subject: Posting combo box to textarea.