You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Igor V. Stolyarov (JIRA)" <ji...@apache.org> on 2007/11/26 08:13:43 UTC
[jira] Updated: (HARMONY-5186) [classlib][awt] Graphics.clearRect
method works incorrectly
[ https://issues.apache.org/jira/browse/HARMONY-5186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor V. Stolyarov updated HARMONY-5186:
---------------------------------------
Attachment: Harmony.JPG
RI.JPG
> [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
> Attachments: 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.