public void setOwner(Window1 owner) { mainWindow = owner; addSmileyWindow.addSmileysToGrid(owner.smileyClass.getAllSmileys()); }