Jeroen Frijters wrote: > Lillian Angel wrote: > > On Sat, 2006-08-05 at 11:28 +0200, Jeroen Frijters wrote: > > > Hi, > > > > > > I commented out the GTK specific code in java/awt/Component.java. > > > Component cannot have dependencies on any specific type of peer. > > > > > > Lillian could you please find a generic way to do what is > required? > > > > > > > Right now, its not possible to do it another way. I have > removed this > > code and added a comment else where. Thanks for pointing this out. > > Thanks, but shouldn't setDropTarget check if peer == null and > in that case store the drop target and call its addNotify in > Component.addNotify?
Oh I see it already does that, in that case I would think that all that is needed is an extra "if (peer != null)" around the dropTarget.addNotify() in setDropTarget. Regards, Jeroen