• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Issue with ComboBox and Windows L&F

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have a JComboBox and I am using the Windows L&F. I click on the arrow to extend the drop-down list, and when I click on the scroll bar the drop down list disappears. Why won't the ComboBox let me use the scroll bar? Has anyone else experienced this problem?
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
It seems that you have missed out something. Try it once again right from the scratch. Select a combo, set its maximum row count (say at 3). implement your code to insert values in combo. and run it. i don't think it will give any problem.
mail back for confusion.
 
Michael Bunch
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried it again from scratch and it is still doing the same thing. I am not using a Layout Manager and I am setting the bounds manually. Do you think that might have something to do with it? It's like when I click the scrollbar on the JComboBox drop-down menu, the control thinks I have clicked off of it. Do you think it has anything to do with me using the Windows Look And Feel? When I use the default Java Look And Feel, the scrollbar on the combobox works fine. I am still confused.
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Michael,
Are you executing any event code handling at all when you click on the scrollbar? Even if you think you are performing logical event handling something may be amiss. Also what OS are you running on? I have seen something similar while running on the Windriver operating system and it was a bug in their Java EVM. Also, on some operating systems you can't run the Windows Look and Feel.
Joe Crew
 
Michael Bunch
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not doing any event handling yet on the ComboBox. I am running Windows 2000. The code that implements the ComboBox is pretty straight-forward. I have it at its most basic implentation. Any other ideas on why this might be happening?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic