Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package hu.kazocsaba.imageviewer;
 
The JComponent implementing an overlay.

Author(s):
Kazó Csaba
class OverlayComponent extends JComponent {
	public OverlayComponent(Overlay overlayImageComponent image) {
		this.=overlay;
		this.=image;
	}
	protected void paintComponent(Graphics g) {
		if (image!=null) {
			gg.dispose();
		}
	}
	}
New to GrepCode? Check out our FAQ X