File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes how to add dropdownlistbox to  text field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add dropdownlistbox to  text field" Watch "how to add dropdownlistbox to  text field" New topic
Author

how to add dropdownlistbox to text field

kalpana kp
Greenhorn

Joined: Sep 07, 2006
Posts: 12
Hi,

Can any one help me how to add drop down list box to textfield in swingS using JPanel.

Iam implementing auto complete text component in swings.I got values from jsp to swing class but i have to add this values to dropdownlistbox.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
use an editable JComboBox
kalpana kp
Greenhorn

Joined: Sep 07, 2006
Posts: 12
Thanks for advance ,

But using that editable combobox we can use static values in that combobox. But i want to display dynamic values in to that combobox
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by shiny:
But using that editable combobox we can use static values in that combobox.


A ComboBoxModel (that can pass in the constructor) can be dynamic without any problems.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add dropdownlistbox to text field