Results 1 to 2 of 2
  1. #1
    Richard5324 is offline Member
    Join Date
    Nov 2011
    Rep Power

    Default Combo Box Checking

    I am trying to make a combo box so that when i click a button it check if it is empty or not and if it is empty it show a message and I tried a few things like .getselectindex and other one similar to that anyone have any idea what it is
    thank any help would be nice.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Combo Box Checking

    If the JComboBox is empty the getItemCount() method returns zero.

    kind regards,

    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Help with combo box
    By Johanis in forum New To Java
    Replies: 3
    Last Post: 10-26-2011, 06:30 PM
  2. dynamically populate the city combo box based on the values of state combo +ajax+jsp
    By sandy1000 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-29-2010, 11:00 AM
  3. Combo Box
    By efozdel in forum New To Java
    Replies: 1
    Last Post: 07-07-2010, 03:29 PM
  4. creation of one combo box form another combo box
    By er.tyagigaurav in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-09-2008, 04:14 PM

Tags for this Thread

Posting Permissions

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