// Whenever a component is resized
public void componentResized(ComponentEvent e) {
if(thisDisplayElement.getLayoutAllocation() != null) {
LayoutAllocation oldLa = thisDisplayElement.getLayoutAllocation();
oldLa.deallocate();
// Try to re-allocate the same location with the new size
LayoutAllocation newLa = LayoutAllocator.allocate(oldLa.point,
thisDisplayElement.getWidth(),
thisDisplayElement.getHeight());