import javax.swing.*;
import java.awt.*;
class Etic extends JLabel
{	Etic(String s)
	{	super(s);
		setOpaque(true);
		setBackground(Color.green);
	}
	public void paintComponent(Graphics g)
	{	super.paintComponent(g);
		int h = getHeight(); int w = getWidth();
		int min;
		if (h < w) min = h; else min = w;
		g.setColor(Color.red);
		for(int r = 1; r < min/3; r+=4)
			g.drawOval(w/2-r, h/2-r, 2*r, 2*r);
		g.setFont
			(new Font("Arial", Font.BOLD|Font.ITALIC, 18));
		g.setColor(Color.white);
		g.drawString("Il Centro", w/2, h/2);
	}
}

class FinGrafica extends JFrame
{	private Container c;
	FinGrafica(String s)
	{	super(s);
		Etic et = new Etic("Etichetta");
		getContentPane().add(et);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
	}
}

public class ProvaL
{	public static void main(String[] args)
	{	FinGrafica fi = new FinGrafica("Grafica");
		fi.setSize(300, 200);
		fi.setVisible(true);
	}
}
