aspose file tools
The moose likes Java in General and the fly likes Posting combo box to textarea. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Posting combo box to textarea.
 
Similar Threads
Problem with JCombo Boxes
Observable/Observer and MVC
Action Listener for Combo box
JTable selected row problem
JComboBox oddity