JDK-7125657 : [macosx] SpreadSheet demo has the broken display when clicking outside of the table
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,7u4
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2011-12-29
  • Updated: 2012-03-05
  • Resolved: 2012-03-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u4 b13Fixed 8Fixed
Related Reports
Duplicate :  
Relates :  
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)

EVALUATION http://cr.openjdk.java.net/~serb/7125657/webrev.00/

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.