Results 1 to 3 of 3
  1. #1
    vahshir is offline Member
    Join Date
    Aug 2010
    Posts
    10
    Rep Power
    0

    Default Comparing JComboBox with string?

    Hey guys i was wondering if it is possible to compare the text in a JComboBox with a string if so could anyone give me some example code? Much appreciated.

    Cheers Vahshir

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    We're not a code-providing service but rather volunteers who would be happy to help you if you desire, but you have to provide the code. If all you want is the code however, then you may wish to check out rentacoder dot com, and pay them for your program. If you want help, please show us what you've tried to d, and let us know how it's not working -- i.e., what error messages or erroneous output you see.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default

    Read the API for JComboBox and follow the link to the tutorial on How to Use Combo Boxes where you will find example code.

    Ask a more specific question if there's anything you don't understand in the tutorial.

    db

Similar Threads

  1. Replies: 8
    Last Post: 02-22-2014, 08:06 AM
  2. Comparing contents of a file with String[]
    By eponcedeleon in forum Advanced Java
    Replies: 2
    Last Post: 02-25-2010, 09:10 PM
  3. Replies: 2
    Last Post: 12-10-2009, 01:58 PM
  4. Jcombobox not liking String input for options :|
    By skatefreak in forum New To Java
    Replies: 4
    Last Post: 05-11-2009, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •