public void addMouseListener(MouseListener listener) { this.addMouseListener(listener); }
thats an infinite recursion - and the reason for the stackOverflow 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 draggabe 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 atcs as a container) and the dropped > widgets should still be draggable. > > In the example a FocusPanel is used to make the droppable and > draggable widgets ... the thing is that FocusPanel 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 MouseListner I get > the following error : java.lang.StackOverflowError: null here : > > public void addMouseListener(MouseListener 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 -~----------~----~----~----~------~----~------~--~---