/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.nplusc.izc.tools.UiToolz;

import java.awt.AlphaComposite;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import javax.swing.JPanel;

/**
 *
 * @author LH
 */
public class HoloJPanel extends JPanel
{
    private Image imageToDraw;
    
    public void setdrawIMG(Image i)
    {
        imageToDraw = i;
    }

    @Override
    protected void paintComponent(Graphics g)
    {
        super.paintComponent(g); //To change body of generated methods, choose Tools | Templates.
        
        ((Graphics2D)g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC));
        ((Graphics2D)g).drawImage(imageToDraw, 0, 0, null);
    }
    
    
}
