United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7125657 [macosx] SpreadSheet demo has the broken display when clicking outside of the table
JDK-7125657 : [macosx] SpreadSheet demo has the broken display when clicking outside of the table

Details
Type:
Bug
Submit Date:
2011-12-29
Status:
Closed
Updated Date:
2012-03-05
Project Name:
JDK
Resolved Date:
2012-03-05
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7,7u4
Fixed Versions:
7u4 (b13)

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:

Sub Tasks

Description
The JDK7 Spreadsheet demo has the broken display if user clicks on the cell outside of the numbers.  As such, the table is no longer dislayed correctly


Test Configuration
------------------
    * OS: iMac 11.2 Mack OS X 10.7.2 - Intel Core i3
    * jdk build: jdk7-mac/ b222, b223
    * Spreadsheet  demo applet

Steps to reproduce
------------------
0)  Getting b223 
1) Compiling /demos/applets/SpreadSheet/*.java
2) Invoke the SpreadSheet demo as
appletviewer /demos/applets/SpreadSheet/example1.html

3) Try to click on the cell which is outside of the numbers (example, the cell where letter A, B, C located)

If you see the broken display as the attached screesshot, the issue is reproducible
The issue has been a regression since b222  (worked fine in b221)

                                    

Comments
EVALUATION

The general bug is that we repaint LWPanelPeer after UPDATE event. 
This is not mac specific bug, because we do the same things on XToolkit too. But this demo works there because XPanel.paintPeer is noop. 
Small testcase attached. If you see cross in the window the test passed otherwise failed.
                                     
2012-02-08
EVALUATION

http://cr.openjdk.java.net/~serb/7125657/webrev.00/
                                     
2012-02-15



Hardware and Software, Engineered to Work Together