The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Making graphics in an application

Posted by Harald Ueland on March 10, 2001 at 11:20 AM

Could someone please give me a little information how to make graphics in a java application (not applet). I want to combine it with labels, buttons etc. I tried to use the paint(Graphics g) method, but then everything else in the JFrame dissapeared. I wrote g.fillRect(20,20,10,10); in the paint method, and I sure got a rectangle, butt only that. Is it the paint method I should use making graphics in a java-app??



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us