void (ContainerEvent e) { Component child = e.getChild(); if (child instanceof JBTable) { myEmptyText = ((ComponentWithEmptyText)child).getEmptyText(); myEmptyText.attachTo(JBViewport.this, child); } }