Results 1 to 3 of 3
  1. #1
    saranv is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default Combo box isn't working, when alpha parameter is used in the Background clr

    Hi to all,

    I created a frame and added a panel to the frame. In that panel, Iíve added a background image and components like combo box, button, etc. In that background image, some extra white space is there in corners. My requirement is to make the frame transparent, so that the extra white space will not be visible.

    Iíve made that frame transparent by setting setBackground(new Color(255,255,255,0)) where the color parameters are red, green, blue, alpha. Since the value of alpha is zero, the frame is transparent. But, if I click the combo box it is not dropping down the items and I canít be able to select the items.

    If there is no alpha parameter (i.e., *setBackground(new Color(255,255,255))*), then the combo box is dropping down fine and can be able to select the items. But the frame is not transparent.

    If I make the frame transparent, other than the combo box all the components are working fine.

    Thanks in advance...:)

  2. #2
    jhuber151 is offline Member
    Join Date
    Jul 2012
    Posts
    55
    Rep Power
    0

    Default Re: Combo box isn't working, when alpha parameter is used in the Background clr

    Can you post some code so we could have a look at how it was implemented?

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

Similar Threads

  1. 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, 10:00 AM
  2. how do I set the alpha value on Images?
    By gib65 in forum AWT / Swing
    Replies: 4
    Last Post: 10-18-2010, 04:20 PM
  3. 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, 03:14 PM
  4. tinyTiM 1.5.0 alpha
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-26-2008, 08:25 PM
  5. SableCC 4-alpha.4
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 03-10-2008, 01:57 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
  •