Getting rid of Graphics2D contours

public void paintComponent(Graphics g) 
{

	AffineTransform identity = new AffineTransform();
				
	Graphics2D g2d =(Graphics2D)g; // Create a Java2D version of g.
	g2d.translate(120, 120); // Translate the center of our coordinates.
			
	AffineTransform trans = new AffineTransform();
	trans.setTransform(identity);
	trans.rotate(1);
			
	g2d.drawImage(P1.pic, trans, this);
	g2d.transform(trans);


But is there any way to get rid of g2d contours (they are drawn in black color)?

EDIT:

Sorry, I had

setBorder(BorderFactory.createLineBorder(Color.black));

inside JPanel