From owner-freebsd-questions Thu Sep 13 10:14:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f146.pav2.hotmail.com [64.4.37.146]) by hub.freebsd.org (Postfix) with ESMTP id ECFA637B40E for ; Thu, 13 Sep 2001 10:14:39 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 13 Sep 2001 10:14:38 -0700 Received: from 195.92.194.17 by pv2fd.pav2.hotmail.msn.com with HTTP; Thu, 13 Sep 2001 17:14:38 GMT X-Originating-IP: [195.92.194.17] From: "ghulam dastgir" To: freebsd-questions@freebsd.org Subject: Java: drawing graphics primitives Date: Thu, 13 Sep 2001 17:14:38 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Sep 2001 17:14:38.0843 (UTC) FILETIME=[91D3B4B0:01C13C77] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm building a Java GUI for an application which has a toolbar and a drawing area. The toolbar has icons representing various shapes (rectangles, lines etc). The idea is that each time I mouse-click on say a rectangle icon I draw another new rectangle (retaining existing rectangles in the drawing area) when I click the mouse-button in the drawing area. The problem is that the code I've hacked doesn't draw another new rectangle but erases the one only rectangle there is and replaces it with a new one where-ever the mouse click is. I suspect this is because the repaint() method repaints! What are my options if want such mouse clicks to create NEW shapes? Thanks, Ghulam _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message