This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hello i'm making a word search game. I want the user of the application to be able to circle the words they find.
At the moment the user can cross out the word. That was no problem as I used drawLine(). Which takes the x1, y1, x2, y2 co-ordinates as arguments. But I can't do the same with drawRectangle or drawRoundRect, because neither take the second x, y co-ordinates but instead take width and height. So I can't think how I could go about drawing a rounded rectangle diagonally down, or diagonally up.
Is there another method somewhere that can do this? Am I missing something simple?