public void paintComponent(Graphics g) { int numstate; JState current, endState; Object[] states; LinkedList<JState> currentList; ListIterator<JState> currentTarget; Point startLoc, endLoc;  numstate = getComponentCountInLayer(STATE_LAYER); states = getComponentsInLayer(STATE_LAYER);  for (int i = 0 ; i < numstate ; i++ ) { current = (JState)states[i];
public void paintComponent(Graphics gr) { int numstate; JState current, endState; Object[] states; LinkedList<JState> currentList; ListIterator<JState> currentTarget; Point startLoc, endLoc;  Graphics2D g = (Graphics2D)gr;  numstate = getComponentCountInLayer(STATE_LAYER); states = getComponentsInLayer(STATE_LAYER);  for (int i = 0 ; i < numstate ; i++ ) { current = (JState)states[i];
    public void paintComponent(Graphics g) {	int numstate;	JState current, endState;	Object[] states;	LinkedList<JState> currentList;	ListIterator<JState> currentTarget;	Point startLoc, endLoc;	numstate = getComponentCountInLayer(STATE_LAYER);	states = getComponentsInLayer(STATE_LAYER);	for (int i = 0 ; i < numstate ; i++ ) {	    current = (JState)states[i];            current.setTransDrawn(false);	}                // wir holen uns bereits hier die Farben aus dem Optionsobjekt        // um unntigen Methodenaufruf-Overhead in drawTransitions zu vermeiden        charColour = VFSAGUI.options.getCharCol();        lineColour = VFSAGUI.options.getLineCol();                for (int i = 0 ; i < numstate ; i++ ) {            current = (JState)states[i];            drawTransitions(current, g);            current.setTransDrawn(true);        }    }