I’m searching a possibility to paint a graph in Java using AWT. My knowledge of Java is still basic, so this is mainly for getting used to AWT, even if it’s already “old”.
-Felix
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Small example of how to paint in Swing components, the same in AWT.
The paint method is the one where you can paint. To see what you can paint (Rectangles, circles, …) you can look at the Java API of the “Graphics” or “Graphics2D” class.