Results 1 to 3 of 3
  1. #1
    DIego912 is offline Member
    Join Date
    Sep 2011
    Posts
    20
    Rep Power
    0

    Default A strange behavior of a JComboBox

    I developed an application and I've put a lot JComboBox everywhere, but I have problems with one. The following:



    The problem is that I can only select the item "Disponible" and "En uso".
    When I try to select any of the other items, always select the item "Disponible" or "En uso".
    All Combos I always filled in the same way, a small function that takes a list of objects and displays ... The function uses a
    "AbstractListModel public class extends implements IBeanComboboxModel ComboBoxModel"
    but I do not think the problem comes around because in all other places where I use a combo I fill in the same way ...
    Well, I hope you understand my problem. Thank you!

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default Re: A strange behavior of a JComboBox

    Do you have any action listeners are implemented on that?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: A strange behavior of a JComboBox

    Quote Originally Posted by DIego912 View Post
    The function uses a
    "AbstractListModel public class extends implements IBeanComboboxModel ComboBoxModel"
    What?

    db

    PS Apart form everything else, Java doesn't have functions. It has methods.

    PPS To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. And remember that the first 'S' stands for Short.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Strange behavior of jova script
    By kenny724 in forum Advanced Java
    Replies: 2
    Last Post: 09-19-2011, 08:45 PM
  2. Strange HashMap behavior
    By mjdousti in forum Advanced Java
    Replies: 2
    Last Post: 08-24-2011, 08:41 PM
  3. Strange Arrays behavior
    By amro in forum New To Java
    Replies: 10
    Last Post: 11-03-2010, 07:08 AM
  4. Strange behavior with Thread.sleep()
    By Steve11235 in forum Advanced Java
    Replies: 16
    Last Post: 05-04-2009, 05:24 AM
  5. strange refreshing behavior
    By diggitydoggz in forum New To Java
    Replies: 4
    Last Post: 12-27-2008, 04:51 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
  •