sib.paste(clipboard); updateTFs(); updateImages();
if (clipboard != null) { sib.paste(clipboard); updateTFs(); updateImages(); }
    public void actionPerformed(ActionEvent ae)    {        if (ae.getActionCommand().equals(selector.getActionCommand()))        {            showInfo(selector.getSelectedIndex());        }        else if (ae.getActionCommand().equals("close"))        {            hide();        }        else if (ae.getActionCommand().equals("Test Entry"))        {            testEntry();        }        else if (ae.getActionCommand().equals("Save Entry"))        {            saveEntry();        }        else if (ae.getActionCommand().equals("Find"))        {            search(search.getText().toLowerCase(), selector);        }        else if (ae.getActionCommand().equals("Copy"))        {            clipboard = (SpriteEditor.SpriteInfoBlock) sib.clone();        }        else if (ae.getActionCommand().equals("Paste"))        {            sib.paste(clipboard);            updateTFs();            updateImages();        }        else if (ae.getActionCommand().startsWith("pics"))        {            //            System.out.println(sib.getSpriteInfo(            //                Integer.parseInt(ae.getActionCommand().substring(4), 16))            //                .toString());            JHack.main.showModule(SpriteEditor.class, sib.getSpriteInfo(Integer                .parseInt(ae.getActionCommand().substring(4), 16)));        }    }