• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

List box problem

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have two list boxes - one for 'Country' field and the for
'States/Provinces'. The country box has two fields , USA and CANADA.
When I select USA from country box, I am adding US states in the
other box and viceversa. But this selection change is causing
flickering . In the code I am using removeAll() on the state box and adding the new list every time the selection changes in country box.
Is there any way to prevent flickering or atleast minimise it ?
Another problem is that I need the list box to be editable. Can I make it editable but USA and CANADA should not be edited. Is this possible ?
I am using AWT applet.
Thanks for any pointers.
--l
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lakshmi,
I think your heading down the wrong path ...
Think AWT Choice Box ... list is hidden so no flickering ... user can type in any thing they want (Editable) ...
Regards,
Manfred
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic