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 check if JcomboBox is contain string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "check if JcomboBox is contain string" Watch "check if JcomboBox is contain string" New topic
Author

check if JcomboBox is contain string

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 190

Hi,

I created a JDialog that contain JComboBox and JButton.
I want to disable the button whenever the combo is not contain string ,means if the user start typing in the combo then the button will be enable.

How can I check if JcomboBox is contain string ?

Thanks

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 190
I found that

Thanks anyway

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: check if JcomboBox is contain string