Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 79787 invoked from network); 26 Nov 2007 10:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 10:18:13 -0000 Received: (qmail 72311 invoked by uid 500); 26 Nov 2007 10:18:00 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 72294 invoked by uid 500); 26 Nov 2007 10:18:00 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 72284 invoked by uid 99); 26 Nov 2007 10:17:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 02:17:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 10:17:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C5C8714236 for ; Mon, 26 Nov 2007 02:17:43 -0800 (PST) Message-ID: <15829314.1196072263572.JavaMail.jira@brutus> Date: Mon, 26 Nov 2007 02:17:43 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-5186) [classlib][awt] Graphics.clearRect method works incorrectly In-Reply-To: <27023319.1196061103051.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison resolved HARMONY-5186. ---------------------------------- Resolution: Fixed Thanks Igor. Patch applied to SWING module at repo revision r598203. Please check it was applied as you expected. > [classlib][awt] Graphics.clearRect method works incorrectly > ----------------------------------------------------------- > > Key: HARMONY-5186 > URL: https://issues.apache.org/jira/browse/HARMONY-5186 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Igor V. Stolyarov > Assignee: Tim Ellison > Attachments: H-5186.patch, Harmony.JPG, RI.JPG > > > Graphics.clearRect method works incorrectly > Simple reproducer: > import javax.swing.*; > import java.awt.*; > import java.awt.event.*; > public class ClearRectTest extends JFrame{ > JPanel jpDemoPanel; > public void init(){ > Color color = Color.black; > Color bgcolor = Color.white; > addWindowListener(new WindowAdapter() { > public void windowClosing(WindowEvent ev) { > System.exit(0); > } > }); > setSize(200, 200); > setVisible(true); > jpDemoPanel = new JPanel(){ > public void paint(Graphics g){ > g.clearRect(0, 0, jpDemoPanel.getWidth(), jpDemoPanel.getHeight()); > } > }; > jpDemoPanel.setBackground(bgcolor); > jpDemoPanel.setForeground(color); > add(jpDemoPanel); > validate(); > repaint(); > } > public static void main(String[] args) { > ClearRectTest crt = new ClearRectTest(); > crt.init(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.