/*
 * Copyright (c) 2002-2007 TeamDev Ltd. All rights reserved.
 *
 * Use is subject to license terms.
 *
 * The complete licence text can be found at
 * http://www.teamdev.com/winpack/license.jsf
 */
package com.jniwrapper.win32.samples.demo;

import com.jniwrapper.win32.com.impl.IUnknownImpl;
import com.jniwrapper.samples.shell.components.LazyPanel;

import java.awt.*;

/**
 @author Vladimir Kondrashchenko
 */
public abstract class ComfyJSample extends LazyPanel
{
    public ComfyJSample(Window parent)
    {
        super(parent);
    }

    protected boolean isComfyJAvailable()
    {
        try
        {
            new IUnknownImpl();
            return true;
        }
        catch (Throwable e)
        {
            return false;
        }
    }
}