newTileButton.setEnabled(atLeastOneSharedImage && !tilebmp);
newTileButton.setEnabled(!tilebmp);
    private void updateEnabledState() {        boolean tilebmp = tileset.getTilebmpFile() != null;        boolean tileSelected = currentTile != null;        boolean atLeastOneSharedImage = tileset.getTotalImages() >= 1;        newTileButton.setEnabled(atLeastOneSharedImage && !tilebmp);        deleteTileButton.setEnabled(!tilebmp && tileSelected);        changeImageButton.setEnabled(atLeastOneSharedImage && !tilebmp            && tileSelected);        duplicateTileButton.setEnabled(!tilebmp && tileSelected);        //animationButton.setEnabled(!tilebmp && tileSelected &&        //		currentTile instanceof AnimatedTile);        tileProperties.setEnabled(tileSelected);        createTileButton.setEnabled(!tilebmp);    }