Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed metus nibh," + " sodales a, porta at, vulputate eget, dui. In pellentesque nisl non sem." + " Suspendisse nunc sem, pretium eget, cursus a, fringilla vel, urna."; } class DDOnTop extends DD { private int origZ = 0; DDOnTop(Component component) { super(component); } public void startDrag(int x, int y) { origZ = DOM.getIntStyleAttribute(this.getEl(), "zIndex"); DOM.setIntStyleAttribute(this.getEl(), "zIndex", 999); } public void endDrag(EventObject e) { DOM.setIntStyleAttribute(DDOnTop.this.getEl(), "zIndex", origZ); } } }