int xPos; String name = ""+num;   g.setColor(currentColor); g.fillRect(0,0,getWidth()-1, getHeight()-1);   if (!finalState) { g.setColor(VFSAGUI.options.getLineCol()); } else { g.setColor(Color.RED); } g.drawRect(0,0,getWidth()-1, getHeight()-1);   if (startState) { Polygon edge = new Polygon(); edge.addPoint(0,0); edge.addPoint(8,0); edge.addPoint(0,8); g.fillPolygon(edge); }  xPos = SwingUtilities.computeStringWidth(g.getFontMetrics(),name);
int xPos; String name = ""+num;   g.setColor(currentColor); g.fillRect(0,0,AutWindow.STATE_SIZE, AutWindow.STATE_SIZE);   if (!finalState) { g.setColor(VFSAGUI.options.getLineCol()); } else { g.setColor(Color.RED); } g.drawRect(0,0,AutWindow.STATE_SIZE-1, AutWindow.STATE_SIZE-1);   if (startState) { g.fillPolygon(parent.getStartTriangle()); }  xPos = SwingUtilities.computeStringWidth(g.getFontMetrics(),name);
    public void paintComponent(Graphics g) {	int xPos;	String name = ""+num;	// Inhalt	g.setColor(currentColor);	g.fillRect(0,0,getWidth()-1, getHeight()-1);		// Rand	if (!finalState) {	    g.setColor(VFSAGUI.options.getLineCol());	}	else {	    g.setColor(Color.RED);	}	g.drawRect(0,0,getWidth()-1, getHeight()-1);		// Startzustnde werden mit einem kleinen schwarzen dreieck in der oberen Ecke kenntlich gemacht	if (startState) {	    Polygon edge = new Polygon();	    edge.addPoint(0,0);	    edge.addPoint(8,0);	    edge.addPoint(0,8);	    g.fillPolygon(edge);	}	xPos = SwingUtilities.computeStringWidth(g.getFontMetrics(),name);	        g.setColor(VFSAGUI.options.getLineCol());	g.drawString(name,(AutWindow.STATE_HALFSIZE)-(xPos/2),AutWindow.STATE_HALFSIZE+5);    }