This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] handle menu bar removal/disposal


On Wed, 2004-01-21 at 16:14, Fernando Nasser wrote:
> Kim Ho wrote:
> > On Wed, 2004-01-21 at 15:31, Fernando Nasser wrote:
> > 
> >>I would add finalize() methods right after the constructors.
> > 
> > 
> > Ok.
> > 
> > 
> >>BTW, isn't there another way to get removeNotify called that is not by using 
> >>finalize()?
> > 
> > 
> > Not AFAIK. I see removeNotify on Menu's when they are removed from a
> > MenuBar, but nothing on the MenuBar itself.
> > 
> 
> This is because Frame.setMenuBar() is totally broken.
> 
> When the argument is null _and_ there is a menuBar set it should be properly 
> removed with a removeNotify ().

Agreed. Withdrawing patch.

Cheers,

Kim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]