This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
Similar Threads
JTable selected row problem
Action Listener for Combo box
Observable/Observer and MVC
Problem with JCombo Boxes
JComboBox oddity