
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.swing.JPanel;

public class TopPanel extends JPanel
{

	   public TopPanel()
	    {
	    	split02.myArea.setText("[ INFO ]: Init GUI : OK" + "\n");
	    	
	    	DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
	    	Date date = new Date();
	    	dateFormat.format(date);
	   	
	    	split02.myArea.append(dateFormat.format(date) + "\n");
	    	
	    	repaint();
	    }
	    
	    @Override
		public void paint(Graphics g) 
		{
			Graphics2D g2d = (Graphics2D) g;
			g2d.setColor(Color.GREEN);
			g2d.fillOval(0, 0, 30, 30);
			g2d.drawOval(0, 50, 30, 30);		
			g2d.fillRect(50, 0, 30, 30);
			g2d.drawRect(50, 50, 30, 30);

			g2d.draw(new Ellipse2D.Double(0, 100, 30, 30));
		
		}
}
