wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Posting combo box to textarea.