• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Choice comp. resists to change its back color...

Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
/* The foll. appln has a Frame whose background = red and foreground = green
I am adding a Panel to this frame.
I am adding a Choice to this Panel
When I display the frame ,the Choice has WHITE as its background color when it is clicked (The area inside the pulldown menu). But theletters are in Green .It does not take it's parent Panel's background color which is RED in this case. But When I explicitly set the back and fore colors of the Choice it behaves as expected.
Is this a special behaviour of Choice Component? Because in R & H pg 315, the Warning says that some Components resist to change their colors in some platforms. I am using WIN 98 /JDK 1.2.2 on a Pentium m/c
Can anybody add anything to this?

[This message has been edited by maha anna (edited February 15, 2000).]
    Bookmark Topic Watch Topic
  • New Topic