Hi daniel, Thanks for your answer, but it didn't made the trick ...
Never mind, I found a solution : I finally used an AbsolutePanel in my FocusPanel so now I keep the drag and drop ability on my widget and its the AbsolutePanel that wraps the new childs and acts as the container ... However, if someone have the solution I'm still interested ... thanks On May 26, 7:36 pm, daniel <d.brelov...@googlemail.com> wrote: > public void addMouseListener(Mouse Listener listener) { > > this.addMouseListener(listener); > > } > > that's an infinite recursion - and the reason for the stack Overflow > > simply call addMouseListener and do not override the method > > On 26 Mai, 09:55, Nicholas <nicholasfle...@gmail.com> wrote: > > > Hi ! I'm pretty new to GWT, > > > I have some trouble making multiple draggable widgets in a container > > that is itself draggable using gwt-dnd ... > > > Basically what I want to do is shown in this example > > :http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag... > > > But the main difference is that I should be able to drop multiple > > widgets in another widget (which acts as a container) and the dropped > > widgets should still be draggable. > > > In the example a Focus Panel is used to make the droppable and > > draggable widgets ... the thing is that Focus Panel can only contain a > > single widget. > > > I tried to use an AbsolutePanel that allows to wrap multiple widgets > > but the thing is that I loose the drag-and-drop ability : > > > So, I tried to implement a SourcesMouseEvents to my widget class that > > extends the AbsolutePanel but when I try to add a MouseListener I get > > the following error : java.lang.StackOverflowError: null here : > > > public void addMouseListener(Mouse Listener listener) { > > > this.addMouseListener(listener); > > > } > > > What should I do here ? Thanks ! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---