• Post Reply Bookmark Topic Watch Topic
  • New Topic

List box problem

 
Lakshmi Geetha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!