From:  Jean-Marc Desperrier <jmdesp@alussinan.org>
Date:  17 Oct 2003 02:44:46 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.oji
Subject:  

Re: java choice menu select method causes action event in OJI plugin mozilla/redhat 8

NNTP-Posting-Host:  host.104.92.68.195.rev.coltfrance.com

Dai McClurg wrote:
> often uses the select("value") method to change the menu items shown. 
  [...]
> which I get an infinite loop of choice menu action events, 

> panel.removeAll();
> choice_object.select("value");
> panel.add_menus_back();
> 
> A more elegant solution would be much appreciated! Thanks for any help 
> on this.

Why can't you use a global variable to let you know you're inside a call 
to choice_object.select ? Of course the user may click exactly at the 
same time, but you can take the risk under consideration to limit it's 
consequences.