General Paths
public void paint(Graphics g) {
Graphics2D g2d = (Graphics2D)g;
GeneralPath gp1 = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
GeneralPath gp2 = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
gp1.moveTo(20,30); gp1.lineTo(150,30);gp1.lineTo(150,130);gp1.closePath();
gp2.moveTo(180,30); gp2.lineTo(290,30);gp2.quadTo(200,75,180,130);
gp2.curveTo(110,50,220,100,180,30);
g2d.setPaint(loadTextureResource("Cork.jpg"));