Results 1 to 2 of 2
  1. #1
    mlpehlivan is offline Member
    Join Date
    Dec 2011
    Rep Power

    Default SWT Combobox: items not showing up until you hover over them

    Hi Guys,

    I'm having display problems with the SWT combobox.

    I use following code to initilialize and declare my combobox:
    Java Code:
    cboRol = new JComboBox(new String[] {"Deelnemer", "Spreker", "Moderator", "Spreker+Moderator"});
     cboRol.setFont(new java.awt.Font("Calibri", 0, 11)); 
     cboRol.setForeground(new Color(0, 0, 0));
     //cboRol.setModel(new DefaultComboBoxModel(new String[] {"Deelnemer", "Spreker", "Moderator", "Spreker+Moderator"}));
    Everything works fine, except that the items are not shown until you hover over them. Once you hover over one it becomes visible.
    Can anybody help tried the visible, opacity and model already stilll no success

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: SWT Combobox: items not showing up until you hover over them

    JComboBox isn't an SWT class. To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 1
    Last Post: 12-11-2011, 11:59 AM
  2. Replies: 8
    Last Post: 12-10-2011, 04:54 PM
  3. Issue with the Hover-Popup Box
    By jazz2k8 in forum Advanced Java
    Replies: 2
    Last Post: 07-22-2011, 07:44 AM
  4. combobox
    By dina in forum AWT / Swing
    Replies: 7
    Last Post: 05-11-2011, 05:31 PM
  5. Replies: 22
    Last Post: 05-19-2010, 02:00 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