JDK-6815717 : Desktop flickers when you click on the TextArea in Appletviewer and browser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-03-10
  • Updated: 2011-01-19
  • Resolved: 2009-03-12
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP Service Pack 2

EXTRA RELEVANT SYSTEM CONFIGURATION :
Dell m1330
Nvidia Geforce 8400M GS

A DESCRIPTION OF THE PROBLEM :
When I run the below source code and a click once on the TextArea box in the applet, the desktop icons flicker once.

Does not happen with the jre 5.0 build 17. I've also compiled the below code with this older build and run it with newer jre6 build 12 and see the issue.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run the applet compiled by below source code, either on Appletviewer or on browser (tested with Firefox 3.0 and Internet Explorer 6.0)
2. Click once on the TextArea box.

Problem is here: we see the desktop icons flicker once.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Desktop icons should not flicker when the TextArea is clicked.
ACTUAL -
Desktop is flickering when the TextArea is clicked.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.applet.Applet;
import java.awt.event.*;
import java.awt.*;

public class ChatBox extends Applet implements ActionListener
{
    TextArea chatLog;
    TextField inputBox;

    public ChatBox()
    {
        chatLog = new TextArea("Welcome to the Chat Room.",15,80,TextArea.SCROLLBARS_NONE);
        inputBox = new TextField(80);
        add(chatLog);
        add(inputBox);
        inputBox.addActionListener(this);
    }

    public void init()
    {
        resize(640,480);
    }

    public void actionPerformed(ActionEvent event)
    {
        chatLog.append(inputBox.getText());
    }

}
---------- END SOURCE ----------

SUPPORT :
YES

Release Regression From : 6u7
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.